[GCM] Add connection factory for creating MCS connections

The connection factory abstracts all net interactions and enforces backoff
policy. Once it creates a connection handler, Connect calls can be made
whenever a reconnection is necessary/ready.

The connection handler is also abstracted into an interface/impl for easier
use in testing (fake connection factory/handlers will be introduced when
testing the main logic of the client).

BUG=284553
R=akalin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239275 0039d316-1c4b-4281-b951-d872f2087c98
Don't use sys.exit() in build_utils.CheckCallDie().

Calling sys.exit() in a thread spawned by
multiprocessing.pool.ThreadPool causes an infinite hang that even SIGINT
can't fix. This is bad. Instead of calling sys.exit(), raise an
exception, crafted so that the important information (the failed
command's stdout and stderr) comes after the stacktrace and the copyable
command.

This also renames CheckCallDie() to CheckOutput() and changes it to
print stderr but not stdout by default. Suppressing stderr has hid bugs
in the past (e.g. aapt crunch failures), and hiding stdout is what we
usually want anyway.

R=cjhopman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239276 0039d316-1c4b-4281-b951-d872f2087c98
aura: Start updating aura to use EventProcessor for event dispatch.

Notable changes in this CL:
 * A WindowTargeter implementation for finding the target Window for an event
   (currently unused), with only a most basic test.
 * Make RootWindow a ui::EventProcessor.
 * Make RootWindowHostX11 a ui::EventSource.

Note that RootWindowHostX11 continues to dispatch events to the RootWindow using
RootWindowHostDelegate interface. This CL prepares much of the machinery for
switching to EventProcessor interface for event dispatch, but it is essentially a
no-op for now.

BUG=318879
R=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239277 0039d316-1c4b-4281-b951-d872f2087c98
Use base namespace for string16 in chrome/browser.

This converts 200 more files.

TBR=sky

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239278 0039d316-1c4b-4281-b951-d872f2087c98
Add myself to OWNERS for IPC messages.

BUG=none
R=jam@chromium.org, palmer@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239279 0039d316-1c4b-4281-b951-d872f2087c98
Move more file_util functions to base namespace.

TBR=sky

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239280 0039d316-1c4b-4281-b951-d872f2087c98
Simplify the Incognito NTP.

Reduce the amount of text.

BUG=70664
TEST=none
R=somast@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239282 0039d316-1c4b-4281-b951-d872f2087c98
Start using URI keyboard type for <input type="url" />

Switch to use URI keyboard type for input fields with type url.
Previously we set it as WEB_EDIT_TEXT, due to <tab> button not showing
when URI type is set, however there is no guarantee that the keyboard
will keep the <tab> button anyway (see bug for more details).

BUG=306359
R=tedchoc@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239283 0039d316-1c4b-4281-b951-d872f2087c98
Animating docked background in sync with shelf

BUG=267582
TEST=Visual.
Dock a window.
Verify that docked background is same as the launcher background.
Open a second browser window.
Maximize it.
Verify that both docked background and the shelf background become opaque black.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239284 0039d316-1c4b-4281-b951-d872f2087c98
Remove unused InvalidationController definitions

This is a follow-up to r236681.  I would have liked to perform this
clean up as part of that change, but some downstream code still depended
on these definitions.  The downstream code has been updated, so now it's
safe to remove these definitions.

BUG=322822

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239285 0039d316-1c4b-4281-b951-d872f2087c98
Use an anchor tag to download the webrtc-internals log.
We used to download the log through a form submission, which is recently
changed in Chrome to have an extra "?" at the end of the URL, which triggers
a navigation instead of a download. The change seems intended and consistent
with other browsers (see the issue for more details). So I'm now using an anchor tag to work around it.

BUG=323408

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239286 0039d316-1c4b-4281-b951-d872f2087c98
Added self to WATCHLISTS. Ran depot_tools/watchlists.py to verify.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239287 0039d316-1c4b-4281-b951-d872f2087c98
Support datalist for date/time input types on Android

BUG=242455

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239290 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Simplify OverscrollGlow usage in RenderWidgetHostViewAndroid

The conditional existence of a valid OverscrollGlow in RWHVA makes for ugly
and fragile usage.  Simplify the situation by always creating the effect,
but enabling only if required, moving enabled resource and logic semantics
to the effect itself.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239291 0039d316-1c4b-4281-b951-d872f2087c98
Multiple level undo/redo of bookmarks available through Bookmark Bar.

The BookmarkUndoService is now being constructed and is observing
user initiated changes to the bookmark model.

Undo and Redo of bookmark changes can be triggered from the
Bookmark Bar context menu. This functionality is behind the switch
enable-bookmark-undo.

Still outstanding is the multi-level undo to be accessible from
the Bookmark Manager.

BUG=126092

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239292 0039d316-1c4b-4281-b951-d872f2087c98
Fix threading issues in Java JNI code for Android Chromoting client.

Updated comments in JniInterface.java to document which threads are
used to access fields and methods. Also added synchronization where it's
needed and removed it where it isn't.

A private lock is used instead of synchronizing on JniInterface.class.

BUG=305770

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239293 0039d316-1c4b-4281-b951-d872f2087c98
NaCl: Update revision in DEPS, r12488 -> r12497

This pulls in the following Native Client changes:

r12489: (jfb) Build libc++/libc++abi with HAS_THREAD_LOCAL
r12490: (jvoung) PNaCl: Update LLVM test suite revision in pnacl/COMPONENT_REVISIONS
r12491: (jvoung) Add dashy repos (llvm-test-suite) to pnacl/deps_update.py
r12492: (mseaborn) Add tests for C++ exception types that use virtual base classes
r12493: (jfb) Update TOOL_REVISIONS for PNaCl 12483->12489
r12494: (mseaborn) PNaCl: Update libcxxabi revision in pnacl/COMPONENT_REVISIONS: SJLJ EH support
r12495: (jfb) Mark faultqueue test as broken on ARM.
r12496: (kschimpf) PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS
r12497: (mseaborn) Update PNaCl toolchain revision to r12494 to get SJLJ EH support for libc++

This pulls in libc++ as the default standard C++ library for PNaCl and allows SJLJ EH to work with libc++.

This also fixes out-of-bounds std::map access in nacl_io testing, and correspondingly broken test. All used  pass because libstdc++ just happened to return the expected value when out-of-bounds, but libc++ doesn't return the same thing and the tests now appeared broken.

BUG=none
TEST=nacl_integration
R=binji@chromium.org, dschuff@chromium.org, ronghuawu@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239295 0039d316-1c4b-4281-b951-d872f2087c98
IndexedDB: Remove more dead code

Remove unused Compare() methods on key types that are always compared
with CompareSuffix, and the remove CompareEncodedIDBKeys(strings...)
helper in favor of the fundamental StringPiece version.

R=alecflett@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239296 0039d316-1c4b-4281-b951-d872f2087c98
Document some of the implications of using MediaCodec and ref internal bugs.

Comment-only change that means I can reclaim some neurons instead of remembering
these things in some vague form until next time I forget them.

NOTRY=true

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

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