[sync] Update mechanism by which options page auto-closes advanced sync dialog

If the user brings up the advanced sync dialog and happens to get signed
out in the background, say, due to a dashboard clear, we don't want the
advanced sync dialog to remain visible, and so the browser options page
has built-in logic to auto-close it when it notices a change in the sync
state.

Since then, the behavior on a dashboard clear was changed, and we went
from merely disabling sync to fully signing out of chrome. As a result,
the old auto-close mechanism, which paid attention to both, signed in
state and sync setup state, would sometimes prematurely close the
advanced sync settings dialog during setup when it detected a change in
the sync setup state, resulting in the two bugs below.

This patch updates the auto-close behavior to reflect the current
dashboard clear behavior, and only detects background sign outs, instead
of unnecessarily responding to changes in the sync setup state, which
could be triggered by the user genuinely trying to set up sync.

BUG=259150,261367
TEST=Open settings, sign out, then sign back in with same / different accounts.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213018 0039d316-1c4b-4281-b951-d872f2087c98
Fix env_chromium_unittest windows compilation.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213019 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] Bring back -Wall and fix or disable all warnings.

Add -Wall to all SDK project, but not to the default
common.mk system (we don't want to force this on external
users).

gtest generates warning in gcc which can be suppressed with
with a gcc-only flag that clang doesn't understand, so I
added the ability to set GCC-only CFLAGS.  This seemed
better than forgoing the benefits of Wall on all
gtest-using projects.

R=binji@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213020 0039d316-1c4b-4281-b951-d872f2087c98
<webview>: Fix resize.

BrowserPluginHostMsg_UpdateRect_ACK ships BrowserPluginHostMsg_ResizeGuest_Params
in the message. Most of the time this struct is uninitialized, and unused. However,
BrowserPluginGuest::OnResizeGuest is called regardless. This resets resize flags,
and occasionally confuses RenderWidgetHostImpl by calling WasResized indirectly.

On certain websites, this breaks resize, or may cause resize to be delayed until
a mouse movement is performed over the content.

This patch addresses the issue by adding a size_changed field to the struct. All other fields are ignored unless that field is true.

BUG=263027
Test=manually, visit http://www.html5rocks.com/en/tutorials/pointerlock/intro in the Chrome Apps Browser demo

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213021 0039d316-1c4b-4281-b951-d872f2087c98
Whitelisted APIs like declarativeContent were displaying wrong availability information. This should fix that.

BUG=262859
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213022 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] Consistent use of copyright header.

Use C++ style copyright header in all C++ headers and sources.

Use consistent C-style copyright header in C sources and headers.

R=noelallen@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213024 0039d316-1c4b-4281-b951-d872f2087c98
Adding an accessibility tree formatter and a couple more role mappings for GTK accessibility

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213025 0039d316-1c4b-4281-b951-d872f2087c98
Remove unused unit tests

These should have been deleted in r208347.  I'm guessing that a bad
rebase accidentally undeleted them.  They're not in any gyp files, so
they don't actually get compiled or run.

BUG=124137

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213026 0039d316-1c4b-4281-b951-d872f2087c98
Hide knowledge of webkit::ppapi::PluginDelegate from chrome. This is part of moving ppapi implementation from webkit/plugins/ppapi to content/renderer.

Chrome used four methods on that interface for PDFs.
-DidStartLoading/DidStopLoading: I just exposed these methods from RenderViewImpl on the RenderView interface
-SetContentRestriction: I moved this functionality completely into chrome. This allows us to get rid of all the content restrictions related methods in the content API, and to move content_restriction.h out to chrome.
-SaveURLAs: exposed the internal SaveURL method on WebContents

BUG=263054
R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213027 0039d316-1c4b-4281-b951-d872f2087c98
In the unity window manager in ubuntu, when you minimize a window it doesn't
let the application know via the normal GTK API's. In this patch, it will use
XEvent to catch the PropertyNotify event and check |_NET_WM_STATE| of the window
to determine whether the state of the window is minimized.

gtk_window_present is used in Maximize and Restore to cause windows to show,
matching the behavior on windows.

BUG=180268, 162794

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213028 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] Fix build error (warning) in nacl_io_test.

The change that enabled -Wall should have contained
this change.

TBR=noelallen1

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213029 0039d316-1c4b-4281-b951-d872f2087c98
Add EventListener and EventEmitter to support epoll.

NOTRY=true
BUG=257723
R=binji@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213030 0039d316-1c4b-4281-b951-d872f2087c98
Swap main menu with app-specific menu when app window focused.

When an app window is focused, a new menu item is created for that app
and appended to the main menu. All of Chrome's menu items are hidden.
When a Chrome window is focused, the app's menu item is removed and 
Chrome's menu items are unhidden.

BUG=168080
TEST=Start an app.
Focus the app window, the only item in the main menu bar should be that app.
Focus a browser window, the main menu bar returns to normal.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213031 0039d316-1c4b-4281-b951-d872f2087c98
Fixes Windows-specific Autofill credit card bubble issues.

SizeToContents() does some #if defined(OS_WIN) && !defined(USE_AURA) magic that was necessary.

R=estade@chromium.org
BUG=260471

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213032 0039d316-1c4b-4281-b951-d872f2087c98
reland crrev.com/212927 Move webkitplatformsupport_impl and related from glue to child

Win x64 warning suppression, and allocator dependency on linux for shared_library build compared to previous land.

TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213033 0039d316-1c4b-4281-b951-d872f2087c98
Record UMA histograms for actions from the Android NTP.

These actions include:
 - Searched using the omnibox
 - Navigated to Google search homepage using the omnibox
 - Navigated to any other page using the omnibox
 - Opened a most visited page
 - Opened a recently closed tab
 - Opened a bookmark
 - Opened a foreign session

BUG=243013
R=estade@chromium.org, mpearson@chromium.org, tedchoc@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213034 0039d316-1c4b-4281-b951-d872f2087c98
Another batch of disabled Ash browser tests

Ran the tests locally and disabled all failing tests (still too many timeouts to actually get through all the tests -- browser tests quit after 5+ tiemouts I think...)... will do another pass.

Temporarily disabled tests are tracked @ https://docs.google.com/a/google.com/document/d/110YdKCAj3MxECZcW3iwYLjgTdzs2aZicLeA8OrC20Zo/edit 

BUG=179830, 262796

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213035 0039d316-1c4b-4281-b951-d872f2087c98
Updating trunk VERSION from 1573.0 to 1574.0

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213037 0039d316-1c4b-4281-b951-d872f2087c98
Replace AudioSilenceDetector with an AudioPowerMonitor.

This will allow the tab audio UI indicator to animate/paint based on the real-time measured power level of the audio stream being played.  This change includes necessary plumbing of the power measurement value all the way from audio internals to the fringes of the tab UI.

BUG=178934

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213042 0039d316-1c4b-4281-b951-d872f2087c98
Implement WebKit::Platform::queryStorageUsageAndQuota

We used to have the same method on RenderViewImpl (WebFrameClient),
but are moving the impl to platform layer.

(Corresponding Blink API change is:
https://src.chromium.org/viewvc/blink?revision=154473&view=revision)

BUG=259660
TEST=no behavioral change
NOTRY=true

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

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