Fix prefs registration/migration for TranslatePrefs.

All preferences should be registered _before_ a PrefService is created,
so reading other prefs during registration is a no-no.

BUG=155525


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184565 0039d316-1c4b-4281-b951-d872f2087c98
Remove SyncSessionJob::DidReachServer() flag

This flag was added in r140885 to address issue 131414.  The problem was
that SyncSessionJobs that did not contact the server would succeed and
attempt to reset the backoff interval. The commits r149052 and r143088
removed the job types that do not attempt to contact the server, so we
no longer need to worry about them accidentally distrupting backoff.

BUG=175024


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184566 0039d316-1c4b-4281-b951-d872f2087c98
[net/dns] Limit maximum timeout after backoff to 5s.

Intermittent network issues could result in timeouts in excess
of 30s which puts HostResolverImpl in a virtually stalled state.

This CL caps the maximum time spent waiting on a single DNS
query to 5s, although resolving a hostname could still take long
time due to suffix search and nameserver fallback.

BUG=110197,177558

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184567 0039d316-1c4b-4281-b951-d872f2087c98
Disable test that times out: ExtensionWebRequestApiTest.WebRequestDeclarative2

TBR=mpcomplete@chromium.org
NOTRY=true
BUG=178296

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184568 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 184568
Added support for passing WindowOpenDisposition into BrowserInstantController::OpenURL() from the omnibox in GWS.

BUG=159328


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184570 0039d316-1c4b-4281-b951-d872f2087c98
[Autofill] Don't override content/ interfaces in chrome/ test code.

BUG=178213


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184571 0039d316-1c4b-4281-b951-d872f2087c98
Remove close_on_deactivate=false for tray bubbles.

Actually we want to close those bubbles on deactivation (like, opening
settings page or opening the chat window for a notification). To deal
with the race condition of close-on-deactivate and button action,
a static delay is introduced.

BUG=177075, 169940
TEST=manually checked with goobuntu, see the bugs for the actual steps


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184572 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 184572
Avoid TabStripModelTest.Apps unittest accessing the private members of Extension class.

BUG=none


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184573 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 184573
Canary test for push messaging.

This test will run on a modified buildbot (NOT in the normal checkin flow)
which our team will monitor.  It will be used to detect checkins that pass
our unit tests, but break our scenario.

BUG=159757


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184574 0039d316-1c4b-4281-b951-d872f2087c98
Add an IPC to disable hiding the top controls.

Needed to notify the render to disable/enable this functionality if
a page is loaded with invalid HTTPS certificates.

BUG=174361


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184575 0039d316-1c4b-4281-b951-d872f2087c98
cc: Flip textures in vertex rather than fragment shader

BUG=178254


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184576 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 184575
Fix net::FileStream to handle all errors correctly.

This CL adds FileStream::Context::IOResult struct that's used to pass
results of IO operations inside FileStream::Context. Following bugs are
fixes:

1. On POSIX net::FileStream::Read() and net::FileStream::Write() would
return a positive result in case of an error. This happens because
POSIX errors are positive integers and FileStream was written with
assumption that they are negative.
2. On Windows Seek() and Flush() errors were not handled correctly.
This is because CheckForIOError() was assuming that all error codes
are negative, but RecordAndMapError() was mapping positive errors.
3. On Windows results of asynchronous ReadFile() and WriteFile() were
not handled correctly - ERR_IO_PENDING would be returned even when
operation completes synchronously.
4. On Windows OVERLAPPED struct wasn't set to zeros as necessary.

Also added unittests to check that error codes are handled correctly
now.

TBR=mmenke@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184577 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 184577
add OWNERS to third_party/khronos

BUG=None
TBR=darin@chromium.org,gman@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184580 0039d316-1c4b-4281-b951-d872f2087c98
Notifications refactor step 2. 

Moved notification_types.* from ui/notifications -> ui/message_center (ui/notifications is removed)

Made message_center::Notification a class rather then a struct. Its lifetime is managed by NotificationList.

Moved UnpackOptionalFields from NotificationList to Notification, it is a private member used in ctor.

Removed 2-level collections (set<list>), now all notifications are stored in a std::list (the ScopedVector didn't work since it can't be sorted)

Use stable sort() to figure out the order of notifications in popups and NotificationCenter.

Changed order of notifications in NotificationListUnittest::MarkSinglePopupAsShown - need mukai@ to verify correctness.

NotificationList::RemoveNotification is now void since its bool result was not used.

In NotificationListUnittest, instead of /gtest.gyp:gtest_main include base.gyp:run_all_unittests to initialize ICU etc.

BUG=174164

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184581 0039d316-1c4b-4281-b951-d872f2087c98
Cleanup: Add fileapi::AreSameFileSystem(url1, url2) utility function

BUG=none
TEST=FileSystemUtilTest.AreSameFileSystem

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184582 0039d316-1c4b-4281-b951-d872f2087c98