Implement value printer to prevent Valgrind errors in AudioPowerMonitor unit tests.

The Google Test templates provide a default value printer function that naively dumps all bytes in the range [&object, &object + sizeof(object)).  However, due to the memory layout of the TestScenario class (on some platforms), there was a hole of uninitialized memory being read from; and this triggered Valgrind errors.

The solution here is to implement an ostream& operator<<(ostream&, const TestScenario&) function that will not read from uninitialized memory regions.

BUG=263315

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213304 0039d316-1c4b-4281-b951-d872f2087c98
Revert 213299 "Add the tracing manager"

Compile failed on buildbot:
http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20Builder%20%28dbg%29&number=18573

> Add the tracing manager
> 
> BUG=248357
> 
> Review URL: https://chromiumcodereview.appspot.com/19762005

TBR=zork@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213307 0039d316-1c4b-4281-b951-d872f2087c98
Dispatch Mouse enter/exit window events (Linux Aura)

EnterNotify and LeaveNotify events will be dispatched to event handlers.

BUG=263220

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213308 0039d316-1c4b-4281-b951-d872f2087c98
Flush the message loop in StorageMonitorLinux tests.

Fixes some of the memory leaks in those tests.

BUG=222687
R=thestig@chromium.org

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

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

Most suppressed tests have been rebaselined in https://src.chromium.org/viewvc/blink?revision=154755&view=revision.

TBR=robertphillips@chromium.org
BUG=258850

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213310 0039d316-1c4b-4281-b951-d872f2087c98
Style cleanup: Rename callback -> onDone in chromoting webapp.

This makes host_dispatcher.js and host_native_messaging.js consistent
with the rest of the webapp. Also fix function declaration style.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213311 0039d316-1c4b-4281-b951-d872f2087c98
Do not update arrow when use-alternate-shelf

The message center still has the arrow because it sets arrow-paint-type
to NONE but further TrayBubbleWrapper's constructor calls
UpdateBubbleViewArrow().

Instead of adding the check before calling UpdateBubbleViewArrow(),
I think it's better to ignore inside.

BUG=260372
R=harrym@chromium.org
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213312 0039d316-1c4b-4281-b951-d872f2087c98
Add support for Device.ProposeScan to NetworkDeviceHandler.

This CL adds the D-Bus hook for calling Device.ProposeScan to
NetworkDeviceHandler as well as bindings for and a function to parse
the results of a cellular network scan which are exposed form shill
as a Device property.

BUG=260964

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213313 0039d316-1c4b-4281-b951-d872f2087c98
They will be restricted to FILE thread. No need for callback.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213314 0039d316-1c4b-4281-b951-d872f2087c98
Revert 213298 "Moves calling OnAutoHideState to when exactly the..."

Seems to be related to buildbot failure:
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/22366

> Moves calling OnAutoHideState to when exactly the state has changed (2nd)
> 
> This method is called when a window is maximized or fullscreen.
> 
> The first attempt was reverted due to a test failure in LauncherTooltipManagerTest,
> and it turns out that's because the observer method is not emitted
> correctly.
> 
> BUG=249509
> TBR=harrym@chromium.org, jamescook@chromium.org
> TEST=manually
> 
> Review URL: https://chromiumcodereview.appspot.com/20056003

TBR=mukai@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213315 0039d316-1c4b-4281-b951-d872f2087c98
[InstantExtended] Changing the histogram name since the definition of the histogram changed when the values used for recording were updated in CL/19772015.


BUG=261681

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213316 0039d316-1c4b-4281-b951-d872f2087c98
Import windows WebInputEvent factory to content

This imports third_party/WebKit/Source/web/win/WebInputEventFactory.cpp
to content/browser/renderer_host/input/ and updates content/ to use it
instead of the third_party/WebKit version. The code is a straight port
and reformat with no (intentional) functional changes or changes in
dependencies.

BUG=263189

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213318 0039d316-1c4b-4281-b951-d872f2087c98
hoover up some CreateStringValues

BUG=160586

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213319 0039d316-1c4b-4281-b951-d872f2087c98
chromeos: Update comment for ClosePanelsOnExtensionCrash.

This updates the comment regarding
WindowOpenPanelTest.ClosePanelsOnExtensionCrash being
disabled on Chrome OS. I don't have any plans to reenable
this test, since it appears to be testing behavior that we
don't use.

BUG=161073

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213320 0039d316-1c4b-4281-b951-d872f2087c98
Do not increase volume when user press Volume Up Button to unmute the audio output.

BUG=263424

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213321 0039d316-1c4b-4281-b951-d872f2087c98
Windows fix for exportSyncfsFolderToLocalFs API.

DeleteFile may return false is the file to be deleted does not exist
on windows. Don't abort export syncfs folder operation if delete
file fails.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213322 0039d316-1c4b-4281-b951-d872f2087c98
[Autofill] Temporarily drop support for street-address autocomplete type.

Bug 261978 tracks re-adding this support correctly.

BUG=261720,261978
R=abodenha@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213323 0039d316-1c4b-4281-b951-d872f2087c98
Ensure we don't crash if user navigates back from NTP to Chrome sign-in page before it has fully loaded.

This CL aims to be simple, so it can be merged back to M29. It changes from DidStopLoading, which is later than needed point in time, to DidNavigateMainFrame. It is safe if we have committed a navigation to delete the previous navigation entry.

I've also added checks to ensure that we don't try to remove a pending navigation entry, as it leads to bugs, as evidenced here.

A follow up CL can completely remove the CurrentHistoryCleaner object, as all it does is store a single bit of state - the history entry index, and monitors for the same navigation events as OneClickSigninHelper.

BUG=257277

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213324 0039d316-1c4b-4281-b951-d872f2087c98
cut a bunch of dependencies from browser->blink when in chrome_multiple_dll

Cuts number of gyp paths from chrome.dll -> blink from ~2000 to 113. The remaining paths are via ppapi\ppapi_internal.gyp which I'm not sure what to do with yet.

This is intended as a relatively temporary measure so that chrome_multiple_dll=1 has the dependency structure that we want (no browser <-> child) with link errors so we can see what work remains.

This CL causes the link errors below in chrome_multiple_dll=1. I think these will be fixed by jam@s moving of webkit/plugins/ppapi into content.

content_common.lib(content_common.pepper_plugin_info.obj) : error LNK2019: unresolved external symbol "public: __thiscall webkit::ppapi::PluginModule::EntryPoints::EntryPoints(void)" (??0EntryPoints@PluginModule@ppapi@webkit@@QAE@XZ) referenced in function "public: __thiscall content::PepperPluginInfo::PepperPluginInfo(void)" (??0PepperPluginInfo@content@@QAE@XZ)
content_common.lib(content_common.pepper_plugin_registry.obj) : error LNK2019: unresolved external symbol "public: __thiscall webkit::ppapi::PluginModule::~PluginModule(void)" (??1PluginModule@ppapi@webkit@@QAE@XZ) referenced in function "public: void * __thiscall webkit::ppapi::PluginModule::`scalar deleting destructor'(unsigned int)" (??_GPluginModule@ppapi@webkit@@QAEPAXI@Z)
content_common.lib(content_common.pepper_plugin_registry.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall webkit::ppapi::PluginModule::InitAsLibrary(class base::FilePath const &)" (?InitAsLibrary@PluginModule@ppapi@webkit@@QAE_NABVFilePath@base@@@Z) referenced in function "private: __thiscall content::PepperPluginRegistry::PepperPluginRegistry(void)" (??0PepperPluginRegistry@content@@AAE@XZ)
content_common.lib(content_common.pepper_plugin_registry.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall webkit::ppapi::PluginModule::InitAsInternalPlugin(struct webkit::ppapi::PluginModule::EntryPoints const &)" (?InitAsInternalPlugin@PluginModule@ppapi@webkit@@QAE_NABUEntryPoints@123@@Z) referenced in function "private: __thiscall content::PepperPluginRegistry::PepperPluginRegistry(void)" (??0PepperPluginRegistry@content@@AAE@XZ)
content_common.lib(content_common.pepper_plugin_registry.obj) : error LNK2019: unresolved external symbol "public: __thiscall webkit::ppapi::PluginModule::PluginModule(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class base::FilePath const &,class webkit::ppapi::PluginDelegate::ModuleLifetime *,class ppapi::PpapiPermissions const &)" (??0PluginModule@ppapi@webkit@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVFilePath@base@@PAVModuleLifetime@PluginDelegate@12@ABVPpapiPermissions@1@@Z) referenced in function "private: __thiscall content::PepperPluginRegistry::PepperPluginRegistry(void)" (??0PepperPluginRegistry@content@@AAE@XZ)

TBR=jam@chromium.org
R=jamesr@chromium.org
BUG=237249

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213325 0039d316-1c4b-4281-b951-d872f2087c98
Crash on message center settings change fixed

The default profile was being used to set which applications can show
notifications. This has been changed to use the last used profile allowed by 
policy. In case the profile happens to be deleted after the message center 
settings controller is created, we just fail silently. Since full-fledged 
multi-profile support will be rolling out in the near future, this is a 
temporary fix to prevent chrome from crashing.

BUG=263193

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

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