google_apis: Convert gdata_wapi_service_unittest.cc to use the new test server

Also rename the test from GDataTest to GDataWapiServiceTest

The tests now run faster:

BEFORE
% repeat 3 time out/Debug/unit_tests --gtest_filter='GDataTest*'  >&/dev/null
1.52s total : 1.21s user 0.27s system 97% cpu
1.48s total : 1.15s user 0.29s system 97% cpu
1.46s total : 1.10s user 0.33s system 97% cpu

AFTER
% repeat 3 time out/Debug/unit_tests --gtest_filter='GDataWapiServiceTest*'  >&/dev/null
0.49s total : 0.40s user 0.09s system 99% cpu
0.48s total : 0.40s user 0.07s system 97% cpu
0.47s total : 0.38s user 0.08s system 97% cpu

BUG=161418
TEST=out/Debug/unit_tests --gtest_filter='GDataWapiServiceTest*'

Review URL: https://codereview.chromium.org/11417024

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168484 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
chromeos: Cleanup drive_download_observer.h

UploaderParams::all_bytes_present/DebugString is deleted because no one is using it.

BUG=None
TEST=build

Review URL: https://codereview.chromium.org/11280004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168488 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix the completion callback handling of RemoteFileSyncService::RegisterOrigin

- Handles temporary error failure cases appropriately
- Also adds OnSyncStateUpdated implementation in SyncFileSystemService
- Also adds mock implementation for service state handling

This patch does NOT yet include:
- Calling RegisterOrigin for pending_register_origins when the service goes from TEMPORARY_UNAVAILABLE to RUNNING

BUG=161436
TEST=SyncFileSystemServiceTest.InitializeForApp*

Review URL: https://codereview.chromium.org/11411034

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168489 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
google_apis: Move URL utility functions out from gdata_operations.cc

This is a first step to split gdata_operations.cc into smaller files.
No change in behaviors. Just move the code.
Along the way, add tests for the functions.

BUG=141469
TEST=compiles
TBR=thestig@chromium.org
# for .gypi changes.

Review URL: https://codereview.chromium.org/11299067

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168490 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Modify DriveFileSyncService::pending_changes_ to be unique for URL.

BUG=156041

Review URL: https://codereview.chromium.org/11316016

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
google_apis: Split gdata_operations.cc/h

Move Documents List API (aka WAPI) stuff to gdata_wapi_operations.cc/h
Move Contacts stuff to gdata_wapi_operations.cc/h

No change in behaviors. Just move the code around.

BUG=141469
TEST=compiles
TBR=thestig@chromium.org
# for .gypi changes.

Review URL: https://codereview.chromium.org/11299068

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168494 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
drive: Test for EventLogger.

BUG=161210


Review URL: https://chromiumcodereview.appspot.com/11419060

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168497 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
gdata: Rename GDataUtilTest to TimeUtilTest

The old name is irrelevant.

BUG=160838
TEST=none

Review URL: https://codereview.chromium.org/11411062

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168498 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Wait until all callbacks run in SharedCallbackRunner

even if one of them fail on the way (to make the timing issues clearer
especially in testing).

This should make the valgrind boxes green

BUG=none
TEST=green bots
TBR=tzik@chromium.org

Review URL: https://codereview.chromium.org/11415045

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168499 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add a UMA metric for whenever an extension is wiped out and when it gets re-enabled.

TBR=sky (for OWNERS)
BUG=154624
TEST=None, the UMA experiment dashboard needs to be checked to see the new boolean histogram.
Review URL: https://codereview.chromium.org/11416033

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168502 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
google_apis: Break the dependency in chrome/common/chrome_switches.h.

BUG=146989
R=satorux@chromium.org
TBR=ben@chromium.org # for gyp changes

Review URL: https://codereview.chromium.org/11316067

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168507 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add DriveFileSyncService::AsWeakPtr as a shorthand of weak_factory_.GetWeakPtr().

BUG=156041

Review URL: https://codereview.chromium.org/11280052

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168508 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Implement upload/download/delete functions in DriveFileSyncClient

BUG=157815
TEST=unit_tests --gtest_filter=\*DriveFileSyncClient\*

Review URL: https://codereview.chromium.org/11362201

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168509 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add ManagedModeSiteList and use it in ManagedModeURLFilter.

Other changes to ManagedModeURLFilter:
* Create two copies, one for the UI thread and one for the IO thread.
* Support matching hostname hashes in addition to URL patterns

TBR=willchan@chromium.org,ben@chromium.org
BUG=134417


Review URL: https://chromiumcodereview.appspot.com/11362155

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168515 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove 'reload page' menu item from context menu of packaged app


BUG=160306
TEST=None

Review URL: https://chromiumcodereview.appspot.com/11418058

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168517 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove PrefObserver usages, batch 7.

In this series we converted BrowserToolbarGtk, BrowserWindowGtk and ZoomController to use callback interface API instead of using PrefObserver.

BUG=155525
R=joi@chromium.org,mnissler@chromium.org
TBR=erg@chromium.org

Review URL: https://codereview.chromium.org/11360254

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168519 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Move ConvertProtoToPlatformFileInfo and ConvertPlatformFileInfoToProto to drive_file_system_util.h

Remove dependancy of drive_files.h from drive_file_system.cc and drive_file_system_proxy.cc

BUG=127856
TEST=compiles.

Review URL: https://chromiumcodereview.appspot.com/11280038

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168525 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix regex for tarballs in CrOS file manager

BUG=none
TEST=blah.tarXbz2 and blah.tarXgz are not labelled as compressed tarballs


Review URL: https://chromiumcodereview.appspot.com/11418052

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168530 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Return first_run_win to using the Chrome path provider to look up the user data dir.

This changed in https://chromiumcodereview.appspot.com/10837222/ which causes a regression when the user data dir is overridden via GP.

BUG=161336
TEST=Have a group policy set to move the user data dir elsewhere. Ensure that repeated Chrome launches do not go through the first run flow.

Review URL: https://chromiumcodereview.appspot.com/11299038

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168531 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove the old wallpaper picker code

BUG=141431

Review URL: https://codereview.chromium.org/11308068

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@168532 4ff67af0-8c30-449e-8e8b-ad334ec8d88c