ExtensionSystem cleanup part 3

Fix most users of ExtensionSystemFactory::GetInstance() to use ExtensionsBrowserClient::Get()->GetExtensionSystemFactory(). Clean up extension_system_factory.h includes.

Follows https://codereview.chromium.org/137753016/

BUG=337707

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251284 0039d316-1c4b-4281-b951-d872f2087c98
Revert "linux-aura/webrtc: Disable a couple of tests failing on the bots."

Flakiness should be fixed.  Renabling tests.

BUG=335916,341265
TEST=trybots

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251285 0039d316-1c4b-4281-b951-d872f2087c98
Update assets for notification when Docs offline is automatically enabled.

BUG=335449

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251286 0039d316-1c4b-4281-b951-d872f2087c98
Add few LOG(ERROR)s when LoadLibrary fails

added log messages when LoadLibrary fails for GLES/EGL libraries.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251287 0039d316-1c4b-4281-b951-d872f2087c98
rAc - hardcode wallet billing address to US in i18n mode

BUG=341586

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251288 0039d316-1c4b-4281-b951-d872f2087c98
Fix the crash issue caused by vibrate permission

The app will be crashed when using vibrate API, without VIBRATE permission specified.
Catch the security exception instead of crash should be more friendly.

BUG=338151
TEST=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251289 0039d316-1c4b-4281-b951-d872f2087c98
[Galley] Fix an exception in clicking a thumbnail

This patch fixes the exception in clicking a thumbnail. It is a regression caused by r249027 and a possible cause of crbug.com/340624.

The 'length' property of the selection model is NOT the number of the selected item. To get it, we need to get the length of 'selectedIndex' property.

BUG=340624
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251290 0039d316-1c4b-4281-b951-d872f2087c98
Do not set the last mouse location from synthesized event.
 The last mouse location should be the updated only by real event because it should point to the real mouse point and synthesized enter/leave may not contain the valid point.

minor: remove unnecessary cast.

BUG=None
TEST=TBD.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251291 0039d316-1c4b-4281-b951-d872f2087c98
Update policy signature verification to include policy domain.

CloudPolicyValidator now accpets a "domain" parameter which is used to generate
verification signatures for public keys.

Broke out CloudPolicyValidator cached-key verification code into a separate
validation function: ValidateCachedKey().

Added new hard-coded signatures for our PolicyBuilder test keys for the
example.com domain.

BUG=275291
TBR=rogerta@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251292 0039d316-1c4b-4281-b951-d872f2087c98
Remove gesture.config_is_trustworthy pref

gesture.config_is_trustworthy pref is a temporary flag added in M30 to
do a one-time wipe of gesture config prefs. After two milestones, the
prefs should have been wiped for a good majority of users. So, the flag
is not needed anymore.

BUG=269292

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251293 0039d316-1c4b-4281-b951-d872f2087c98
Roll Skia DEPS to r13441

R=rmistry@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251294 0039d316-1c4b-4281-b951-d872f2087c98
Add a second experiment group for the iOS NTP experiment.

BUG=309077
TEST=None

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251296 0039d316-1c4b-4281-b951-d872f2087c98
Added tests for views flavor of MediaGalleriesDialogTest.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251297 0039d316-1c4b-4281-b951-d872f2087c98
[telemetry] Script for finding all Telemetry dependencies.

Given a list of Python modules, it will find all:
- bootstrap_deps folders, recursively.
- Python dependencies.
- Page sets in those modules' folders.
- Serving dirs of those page sets.
And print a list of all files, or zip them up.

Example bot command: tools/telemetry_tools/find_dependencies -v tools/perf/run_benchmark tools/perf/run_measurement tools/perf/record_wpr content/test/gpu/run_gpu_test -z telemetry.zip


BUG=311380
TEST=Ran it.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251298 0039d316-1c4b-4281-b951-d872f2087c98
Remove the animation delay for showing the top level apps when user opens app list launcher. The animation will be performed only when user return to the top level apps grid view from a folder view.

BUG=336187

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251299 0039d316-1c4b-4281-b951-d872f2087c98
Remove hardcoded "Preferences" strings from app_list tests

R=tapted
BUG=343692

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251300 0039d316-1c4b-4281-b951-d872f2087c98
Cast: Split kDuplicatePacketReceived into separate events for audio/video.

This change brings this type of event in line with the rest - having separate types
for audio / video. As a new type that is potentially sent over in RTCP is introduced,
a new RTCP encoding for that type is added as well.

This change is backwards-compatible because these events aren't being sent over in RTCP because they are not processed by ReceiverRtcpEventSubscriber.

BUG=337901

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251301 0039d316-1c4b-4281-b951-d872f2087c98
Clarify settings UI in multi-profiles mode

Adds bubble buttons to indicate which settings are shared.

When signed in as a secondary user (i.e., added to a multi-profile session),
a banner should be display. The "Internet connection" header should show a
shared icon. Owner-controlled settings should show the owner icon.
"Require password to wake from sleep" is a special case.

This also fixes a bug where controlled settings on managed devices should say
they are controlled by policy, but instead say the (non-existent) owner controls
them.

For details, see PRD with additional links at bottom:
https://docs.google.com/a/google.com/document/d/1G09Mql1TtVFA4qhb7hlt4u2crBv6_fhrZMf40Yo--lc

BUG=326354
R=dbeam@chromium.org, stevenjb@chromium.org, oshima@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251302 0039d316-1c4b-4281-b951-d872f2087c98
Fix issue that IME can't be enabled when set Plugin mode to "Click to play".

In normal mode, the plugin is created at the moment the page is loaded. Then when the first time the plugin is clicked. It will set the flag "has_webkit_focus_" true in real plugin instance. Then, send out the focus change notification in PepperPluginInstanceImpl::SetWebKitFocus, which will finally affect the IME stuff.

However, at "Click to play" mode, WebViewPlugin is created at first, which will be replaced by real plugin. When the first time we click, the real plugin is created, loaded. But no focus is set in real plugin, which cause the IME stuff can't be enabled. 

In solution, we transfer the |focused_| in WebViewPlugin to new plugin after it loaded.

BUG=336740

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

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