Save the history- and downloads-allowed status in the Clear Browsing UI.

Fix the argument passing so the history and downloads checkboxes are properly disabled when the kAllowClearingBrowserHistory pref is false, and add state to the overlay to re-disable the checkboxes when the overlay is re-shown.

BUG=177477
TEST=set kAllowClearingBrowserHistory to false (UI to do so is forthcoming), then open "Clear browsing data..." twice in a row

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183969 0039d316-1c4b-4281-b951-d872f2087c98
Enable radiobuttons as autofillable elements.

* adds check for radiobutton
* moves the logic of identifying checkbox/radiobutton to use newly exposed webkit glue API on WebInputElement (isCheckbox(), isRadioButton()).
* test data file changes.

(Relanding to assert that test order is not causing  regression on win7)

BUG=177304


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183970 0039d316-1c4b-4281-b951-d872f2087c98
InstantExtended: Allow setting URL in verbatim.

Previously, InstantController prevented setting URL suggestions in
verbatim mode to avoid showing blue text while a user is backspacing.
This doesn't work for the case of backspacing from a query to an URL.

Instead, when the page tries to set a URL suggestion in verbatim
mode, attempt to set the exact omnibox text as the suggested text
(subject to all the other checks on suggested text).

This permits the page to say "hey, this is a URL again".

BUG=176623
TEST=Try typing some urls and suffixes and backspacing. You should never
see blue autocompletion while backspacing. However, until server side
fixes are in, you still may not be able to backspace from a query to an
url suggestion properly.

R=sreeram@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183971 0039d316-1c4b-4281-b951-d872f2087c98
Style cleanup: const char* -> const char ... [].

BUG=none
TEST=compiles


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183972 0039d316-1c4b-4281-b951-d872f2087c98
Move handleJavaScriptDialog command to RendererOverridesHandler.

This has the side effect of fixing a bug where it didn't return an error message if Page.handleJavaScriptDialog failed.
BUG=175602


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183974 0039d316-1c4b-4281-b951-d872f2087c98
[sync] Upstream the code that triggers the InvalidationController

The InvalidationController needs to be started and stopped based on when
the main activity is resumed and paused. This upstreams the listener
part of that.

It also adds a test for the new functionality and a mock implementation
of the SyncContentResolverDelegate.

BUG=159203

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183975 0039d316-1c4b-4281-b951-d872f2087c98
Fix handling of redirect so "do not ask again" is honored for interstitial

One function extracts and stores the user's email address and the other uses it.  It was using the value before it was stored and thus never matching the blacklist and always showing the interstitial.


BUG=176189


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183976 0039d316-1c4b-4281-b951-d872f2087c98
Audio indicator in each tab

Basically a throbber animation that cycles over a number of
frames on a bitmap. Currently only 6 frames, which is too little
but good enough for testing.

Note that the tab.cc logic should make it so that the audio indicator
is low on the priority. That is, if the tab is recording or broadcasting and
playing sounds that should show instead of the audio animation.

BUG=3541
TEST=see bug

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183977 0039d316-1c4b-4281-b951-d872f2087c98
Use microseconds instead of milliseconds for integer audio math.

When dealing with values where +/- 1ms is an enormous amount of
error, we should be using microseconds.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183978 0039d316-1c4b-4281-b951-d872f2087c98
Revert 183977
> Audio indicator in each tab
> 
> Basically a throbber animation that cycles over a number of
> frames on a bitmap. Currently only 6 frames, which is too little
> but good enough for testing.
> 
> Note that the tab.cc logic should make it so that the audio indicator
> is low on the priority. That is, if the tab is recording or broadcasting and
> playing sounds that should show instead of the audio animation.
> 
> BUG=3541
> TEST=see bug
> 
> Review URL: https://chromiumcodereview.appspot.com/12328027

Broke Linux ChromiumOS Debug Clang: http://goo.gl/iOwf2

TBR=cpu@chromium.org
Review URL: https://codereview.chromium.org/12319058

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183980 0039d316-1c4b-4281-b951-d872f2087c98
Android: Add test runner scripts to run content_browsertests.

We want to run only one testcase each time the test activity is invoked.

Next:
Currently the APK is reinstalled before runnning each test case, avoiding that (and other test data setup) will speed up tests a lot.

build/android/run_browser_tests.py  -vvv -f SessionHistoryTest.BasicBackForward:SessionHistoryTest.FrameBackForward
BUG=138275

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183982 0039d316-1c4b-4281-b951-d872f2087c98
cros: Add kiosk app launch UI for login screen.

- Show an "Apps" menu in header bar on login screen for
  app mode;
- Defer apps menu related css/js loading to avoid blocking
  login UI and regressing on boot time;

BUG=173756
TEST=Verify an apps menu show up in login screen for app
     mode. Launch the app is not implemented and is tracked
     in http://crbug.com/173803.

R=zelidrag@chromium.org,nkostylev@chromium.org
TBR=sky@chromium.org for gyp change.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183983 0039d316-1c4b-4281-b951-d872f2087c98
Remove the notification registrar from NativeAppWindowCocoa.

ShellWindow already listens to this notification and calls RenderViewChanged(),
so implement that instead of listening again.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183984 0039d316-1c4b-4281-b951-d872f2087c98
Added --force-load-cloud-policy flag

Added command-line switch to tell the cloud policy framework to try to load
policy even if the signed-in user is not a dasher user. This is useful for
testing so we don't need to have a dasher account - any GAIA account will work.

BUG=177205


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183985 0039d316-1c4b-4281-b951-d872f2087c98
Enable tests that depend on shell windows being focused on GTK.

Should land after https://codereview.chromium.org/12298025/, which allows these
tests to pass on GTK.

BUG=162978

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183987 0039d316-1c4b-4281-b951-d872f2087c98
gpu: Add some extra shared memory pool stats.

We don't currently track the number of pending
uploads (acquired handles). This should help to
diagnose if we have too many uploads or are just
mapping too much memory for just a few uploads.

BUG=177500


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183988 0039d316-1c4b-4281-b951-d872f2087c98
Aura: Fix linter warnings.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183989 0039d316-1c4b-4281-b951-d872f2087c98
Fix the size of scrollbars when using the Windows Classic theme.

BUG=175335

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183990 0039d316-1c4b-4281-b951-d872f2087c98
TextureLayer: Consume/Produce mailbox at commit time.

Doing it at willDraw time prevents a TextureMailbox to be released if the layer
doesn't draw (occluded/etc.) Instead, do it at commit time, which has the extra
property that it's effectively a swap, meaning the TextureLayer only owns (at
most) 1 mailbox at any time.

BUG=None


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183993 0039d316-1c4b-4281-b951-d872f2087c98
net: Remove UploadDataStream::merge_chunks_

Unmerged chunk read is tested by SpdyHttpStreamSpdy2(3)Test.DelayedSendChunkedPost already.

BUG=None
TEST=net_unittests


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

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