Add a unit test for EventRewriter to prevent a regression like https://codereview.chromium.org/12200002/.

BUG=157065
TEST=Run the new test on trybot and locally. Confirm that all the tests in event_rewriter_unittest.cc including the DISABLED_ ones pass.
TEST=Also confirm that DISABLED_TestRewriteDiamondKey fails if we revert crrev.com/180367 .


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181143 0039d316-1c4b-4281-b951-d872f2087c98
Use new WebKit API to enable caching in accessibility tree.

This allows WebKit accessibility operations to be a lot faster
when we're making a batch of read-only queries to the accessibility
tree.

BUG=173492
TBR=jamesr


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181144 0039d316-1c4b-4281-b951-d872f2087c98
Kill renderer processes that fail check in RenderViewHostImpl::SetWebUIProperty

When setting WebUI property for a renderer, it should have WebUI bindings enabled. If we get into inconsistent state where the renderer doesn't have those bindings, but we are trying to set WebUI properties, we should kill it. This is a defense in depth measure against security exploits.

BUG=174063

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181145 0039d316-1c4b-4281-b951-d872f2087c98
Revert 181141
> This adds the onNetworkChanged event to networkingPrivate
> extension API.
> 
> (TBR'ing trivial change to profile_dependency_manager.cc)
> 
> TBR=davemoore@chromium.org
> BUG=chromium:168713
> 
> Review URL: https://chromiumcodereview.appspot.com/12188027

TBR=gspencer@chromium.org
Review URL: https://codereview.chromium.org/12207057

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181147 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 181145
SVN changes up to revision 181148
Linux sandbox: restrict ioctl() parameters.

We restrict ioctl() parameters in the renderer and worker processes.

BUG=129097,145641

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181150 0039d316-1c4b-4281-b951-d872f2087c98
A new EditingAndroidBehavior has been added to WebKit to support Android. Use that behavior on Android.

BUG=169951


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181151 0039d316-1c4b-4281-b951-d872f2087c98
Implement sql::Connection::RazeAndClose().

Raze() clears out the database, but cannot be called within a
transaction.  Close() can only be called once all statements have
cleared.  Error callbacks happen while executing statements (thus
often in a transaction, and at least one statement is outstanding).

RazeAndClose() forcibly breaks outstanding transactions, calls Raze()
to clear the database, then calls Close() to close the handle.  All
future operations against the database should fail safely (without
affecting storage and without crashing).

BUG=166419, 136846


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181152 0039d316-1c4b-4281-b951-d872f2087c98
Avoid getting UI elements in GTK thumbnails

BUG=146026
Test=Manual, see bug
R=erg, brettw
TBR=sadrul

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181153 0039d316-1c4b-4281-b951-d872f2087c98
Add UMA datapoints for cases where FilterURL fails.

We plan to start killing processes when FilterURL fails, so I'm putting some UMA stats in the meantime to see if we are seeing lots of these (not expected).

BUG=172694


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181154 0039d316-1c4b-4281-b951-d872f2087c98
Implementing dismissing Google Now notifications.

BUG=164227


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181157 0039d316-1c4b-4281-b951-d872f2087c98
Media Galleries: Check for a NULL RVH in the permission API code.

BUG=none
TEST=On Chrome for ChromeOS, leave a media gallery permission dialog open and close the Aura window.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181158 0039d316-1c4b-4281-b951-d872f2087c98
[Spellcheck] JSON-Escape API key


R=rlp@chromium.org
BUG=none


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181159 0039d316-1c4b-4281-b951-d872f2087c98
Linux/ChromeOS Chromium style checker cleanup, chrome/browser/extensions edition.

Automated clean up of style checker errors that were missed due to the plugin
not being executed on implementation files.

BUG=115047

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181160 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 181156
Move string_number_conversions to base/strings.

This only updates includes in base and keeps a forwarding header for now to keep the change under control.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181161 0039d316-1c4b-4281-b951-d872f2087c98
Cleanup: use "drive" instead of "gdrive".

This change just replaces "gdrive" with "drive".

> % git grep -i gdrive | grep -v cygdrive | grep -v angular_framework | wc -l
> 0
> % find * -name '*gdrive*' | wc -l
> 0

BUG=none
TEST=compile passes, files.app can be launched

R=satorux@chromium.org

TBR=sky@chromium.org, kinuko@chromium.org
# TBRing for comment changes in ui/ and webkit/.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181163 0039d316-1c4b-4281-b951-d872f2087c98
Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition.

Automated clean up of style checker errors that were missed due to the plugin
not being executed on implementation files.

BUG=115047

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

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