Revert 267170 "Use DiscardableMemoryManager on Android."

> Use DiscardableMemoryManager on Android.
> 
> This allows userspace (DiscardableMemoryManager) to control eviction of
> unlocked DiscardableMemory instances to prevent the process from running out of
> address space in cases of heavy use of unlocked DiscardableMemory.
> 
> This also removes all the occurences of 'Android' from the ashmem allocator to
> allow it to be later used on ChromeOS.
> 
> BUG=327516, 334996
> R=reveman@chromium.org, willchan@chromium.org
> 
> Review URL: https://codereview.chromium.org/195863005

TBR=pliard@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267175 0039d316-1c4b-4281-b951-d872f2087c98
[webcrypto] Make operations run on a background thread so they don't block the blink thread.

More details on threading strategy provided in webcrypto_impl.cc.

BUG=245025

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267176 0039d316-1c4b-4281-b951-d872f2087c98
MacViews: additional mac stubs in ui/views for menus, dragging

Adds Mac stubs for menu_config_mac and metrics_mac.

- Moves menu_config_views.cc to menu_config_aura.cc.
- Moves mouse_watcher.cc to mouse_watcher_aura.cc.
- Moves the aura-specific RunShellDrag in drag_utils.cc to
drag_utils_aura.cc.

BUG=366007

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267177 0039d316-1c4b-4281-b951-d872f2087c98
[safe-browsing] Cleanup tests and remove unnecessary prefix tracking.

Shift PrefixSet::GetPrefixes() into private:, and make test users
friends appropriately.  This moved some tests into namespace
safe_browsing, removed duplicate safe_browsing:: in the PrefixSet
tests.

Modify manual chunk-loading code to use BeginChunk/FinishChunk around
logical chunks, and to not mix prefixes and full hashes in the same
chunk.  Remove cases where the tests were loading full hashes and the
corrosponding prefix, which was not representative of actual chunks
received from the server.

Remove the part of SBProcessSubs() which deleted full hashes by their
prefix component.  Since prefixes and full hashes cannot mix in a chunk,
this case should not be possible in the first place.

Fixed SBProcessSubsDeleteChunk to test what it claimed to test.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267178 0039d316-1c4b-4281-b951-d872f2087c98
net: Always pass TaskRunner to FileStream's ctor

BUG=275751
TEST=git cl try

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267179 0039d316-1c4b-4281-b951-d872f2087c98
Adding mojo_test_apk in the fyi waterfall.

R=navabi@google.com, viettrungluu@chromium.org
TBR=navabi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267180 0039d316-1c4b-4281-b951-d872f2087c98
Add a component updater for the CLD2 data file.

BUG=326023,367239

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267181 0039d316-1c4b-4281-b951-d872f2087c98
Disable WebRtcDisableEncryptionFlagBrowserTest.MANUAL_VerifyEncryption on XP.

Flaky timeout on a certain bot.

NOTRY=true

BUG=368163

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267182 0039d316-1c4b-4281-b951-d872f2087c98
Make sure the endpoints of the SandboxIPC mechanism cannot be misused.

BUG=322185
TEST=Browser starts, loads webpages.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267183 0039d316-1c4b-4281-b951-d872f2087c98
Refactor views app list services to allow more code sharing

To run the toolkit-views app launcher on Mac, it needs a new app list
service + supporting classes. It's going to look a lot like the Linux
one. This CL starts by sharing what can be shared between Windows and
Linux, in preparation for using it on Mac as well.

It does this principally by:
- Moving `app_list_shower` to `app_list_shower_views`, making it views-specific;
- Adding AppListServiceViews, which Win/Linux (and soon Mac) inherit from;
- Rearranging the delegation to eliminate some boilerplate.

Other changes:
- Removed AppList container abstract interface (now just access AppListView);
- Removed AppListFactory (now AppListShower::MakeViewForCurrentProfile());
- Moved AppListControllerDelegateLinux to AppListControllerDelegateViews;
- Most of AppListServiceLinux moves to AppListServiceViews;
- Added AppListShowerDelegate and AppListShower given virtual method
hooks to assist testability (previously AppListShower was given a NULL
service/delegate in tests);
- Positioning logic in AppListWin/AppListLinux made static/stateless;
- Removes the `on_should_dismiss_` closure (now just dismiss via the service;
- Big trim of AppListServiceWin and AppListServiceLinux - now these are
just platform-specific stuff.

BUG=365977
TEST=Just refactoring, nothing should change

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267184 0039d316-1c4b-4281-b951-d872f2087c98
Renamed namespaces in src/net.
url_util -> url
url_parse -> url
url_canon -> url

BUG=364747

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267185 0039d316-1c4b-4281-b951-d872f2087c98
Ensure stale values are not used in Mac App Launcher layout.

Cocoa's NSCollectionView has a buggy layout if it is first shown while
its parent view is scrolling. We work around this by correcting the
layout. However, if the launcher window is not visible the corrected
value is not queried. This results in a stale layout being used when
subsequently shown.

This CL ensures stale values are replaced when correcting the layout.

It also ensures an item move triggered outside the app list updates
layout values. Previously this had an optimization to do a simpler
rearrangement, but it would skip over the corrections.

BUG=364495
TEST=With the mac app launcher hidden, uninstall an app on the first
page of apps from chrome://extensions. Show the lanucher - layout should
be correct.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267186 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 172887:172911

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=172888:172911&mode=html
TBR=
BUG=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267188 0039d316-1c4b-4281-b951-d872f2087c98
Fix flickering Mac app launcher progress bar on <10.9

On Mavericks, the app lanucher subviews need to have access to a
compositing layer they can share. Otherwise the compositor makes tearing
artifacts. However, doing this on Mountain Lion or earlier results in
flickering whilst an item is installing IF the app launcher menu is also
opened - a different Apple bug.

This CL restricts the fix for the tearing to Mavericks or later.

BUG=362547
TEST=Install a large app from the webstore on Mountain Lion (10.8) or
earlier. Open the app launcher menu. The progress bar should not
flicker.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267189 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Removed dependency on the UI from the NetworkPortalDetector. (https://codereview.chromium.org/245113003/)

Reason for revert:
Causes crashes.

Original issue's description:
> Removed dependency on the UI from the NetworkPortalDetector.
> 
> BUG=363776
> TEST=browser_tests:NetworkPortalDetectorImpl*
> R=stevenjb@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267169

TBR=stevenjb@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=363776

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267190 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Refactor views app list services to allow more code sharing (https://codereview.chromium.org/225053004/)

Reason for revert:
failed compile on clang dbg.

Overriding method must be marked with OVERRIDE.
  virtual app_list::AppListView* MakeViewForCurrentProfile() {
Overriding method must be marked with OVERRIDE.
  virtual AppListControllerDelegate* GetControllerDelegateForCreate() {


Original issue's description:
> Refactor views app list services to allow more code sharing
> 
> To run the toolkit-views app launcher on Mac, it needs a new app list
> service + supporting classes. It's going to look a lot like the Linux
> one. This CL starts by sharing what can be shared between Windows and
> Linux, in preparation for using it on Mac as well.
> 
> It does this principally by:
> - Moving `app_list_shower` to `app_list_shower_views`, making it views-specific;
> - Adding AppListServiceViews, which Win/Linux (and soon Mac) inherit from;
> - Rearranging the delegation to eliminate some boilerplate.
> 
> Other changes:
> - Removed AppList container abstract interface (now just access AppListView);
> - Removed AppListFactory (now AppListShower::MakeViewForCurrentProfile());
> - Moved AppListControllerDelegateLinux to AppListControllerDelegateViews;
> - Most of AppListServiceLinux moves to AppListServiceViews;
> - Added AppListShowerDelegate and AppListShower given virtual method
> hooks to assist testability (previously AppListShower was given a NULL
> service/delegate in tests);
> - Positioning logic in AppListWin/AppListLinux made static/stateless;
> - Removes the `on_should_dismiss_` closure (now just dismiss via the service;
> - Big trim of AppListServiceWin and AppListServiceLinux - now these are
> just platform-specific stuff.
> 
> BUG=365977
> TEST=Just refactoring, nothing should change
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267184

TBR=tapted@chromium.org,mgiuca@chromium.org
NOTREECHECKS=true
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267191 0039d316-1c4b-4281-b951-d872f2087c98
Do not attempt to download favicons with 404 status in WebView

This issue was fixed for Chromium (crbug.com/39402). This patch gets the
relevant parts of the fixing patch for Android WebView.

BUG=39402

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267192 0039d316-1c4b-4281-b951-d872f2087c98
[3/4] Process clearBrowserCahce/cookies commands in browser.

BUG=366585
TBR=cdn@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267193 0039d316-1c4b-4281-b951-d872f2087c98
Create ManagedModeNavigationObserver independently of Profile::IsManaged state, since it will become possible for Profile::IsManaged to change during a Profile's lifetime.

BUG=

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

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