The WebView has a path (early use of the CookieManager) which
needs access to the native command line arguments before we have
initialized Chromium.

This cl moves the setting up of the native command line to just after
the LibraryLoaded.load step rather than just before the
LibraryLoaded.initialise step.

We remove the ability to pass the command line to initialize
(which doesn't seem to be used) and remove the command line 
argument from the LibraryLoaded hook. You can access the
native command line arguments instead which will have been set up.

BUG=331424

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@288697 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disable all the tests that are flaking more than 5% on Linux builders.

Data from http://chromium-build-logs.appspot.com/flakiness_dashboard?master=chromium.linux.

BUG=386891,396458,396455,396462,396464,396492,396491,396488,396484,396482,396480,180759,396477,126092,396473,396472,396468,396466
R=viettrungluu@chromium.org
TBR=ben

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@288722 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
base: Introduce an explicit call for reducing emulated discardable memory usage.
    
This removes the use of memory pressure signals from discardable memory
system and instead introduces an explicit call for reducing emulated
discardable memory that the renderer can call when all widgets are hidden
until we have a better mechanism in place.
    
BUG=398087
TEST=base_unittests,content_browsertests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@288793 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Move ini_parser from base to chrome/common

This was moved to base apparently thinking it could be shared with a media
gallery thing that seems not to have panned out.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@288814 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert of base: Introduce an explicit call for reducing emulated discardable memory usage. (https://codereview.chromium.org/448173002/)

Reason for revert:
tree-closer content_browsertests failing on Linux Chromium OS ASan LSan Tests (1)
test RenderThreadImplBrowserTest.EmulatedDiscardableMemoryDiscardedWhenWidgetsHidden
failing since
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/2501

Error: LeakSanitizer: detected memory leaks (Various Indirect leaks).
..
SUMMARY: AddressSanitizer: 19178 byte(s) leaked in 34 allocation(s).

Original issue's description:
> base: Introduce an explicit call for reducing emulated discardable memory usage.
>     
> This removes the use of memory pressure signals from discardable memory
> system and instead introduces an explicit call for reducing emulated
> discardable memory that the renderer can call when all widgets are hidden
> until we have a better mechanism in place.
>     
> BUG=398087
> TEST=base_unittests,content_browsertests
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288793

TBR=jochen@chromium.org,mark@chromium.org,reveman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=398087

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@288913 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add ScopedObjCClassSwizzler in base/mac, absorbs objc_method_swizzle and ScopedClassSwizzler

ScopedClassSwizzler from ui/test is wanted for new tests where it can't
currently be accessed. It also re-implements a concept in
chrome/common/mac/objc_method_swizzle.*

This change adds base::mac::ScopedObjCClassSwizzler, merges concepts
from objc_method_swizzle, and adjusts chrome_browser_application_mac.mm
to use the new swizzler.

The test from objc_method_swizzle is adapted and extended for the scoped
swizzler.

BUG=378134
TEST=base_unittests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@288943 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Adds some CHECKs to MessagePumpMojo

The thread watcher appears to be kicking on when we're trying to
remove a handle. Not sure why. This converts some DCHECKs to CHECKs
and fixes handling of the deadline. I suspect none of this will help,
but it's worth a shot.

BUG=399769
TEST=none
R=darin@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/base@288949 4ff67af0-8c30-449e-8e8b-ad334ec8d88c