Hook up GN official build and branding.

This passes the official build and branding flags to the GN build. Currently, this is used to hook up the proper sysroot for compiling on Linux for official builds. The 32-bit branded build does not compile currently due to pending pkgconfig issues.

Fix a bug where assertions in the build config would not get reported properly. This was because I forgot to actually throw the error at the toplevel.

BUG=
R=piman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240918 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240918
Send UMA stability stats in a separate UMA log on startup. 

This is implemented behind a field trial, so that we can roll-out this 
functionality while monitoring crash stats, to ensure there's no problem 
with the stats being misreported. 

This change splits the initial UMA upload into two separate logs when the 
previous session didn't end cleanly. The first will contain the system profile 
from the previous session (which has been saved to local state), as well as 
the Chrome stability stats. The second log will have the regular startup 
metrics (histograms and profiler data). 

With the new (behind a field-trial) behavior, the code also reads unsent 
logs from prefs (that are already in memory) earlier, so that it can persist 
the initial stability log, in case a crash happens before it's sent. I've 
added some UMA histograms to track how long reading/saving unsent logs 
takes and will evaluate this when ramping up the field trial to ensure the 
time taken is acceptable. 

BUG=312733
TEST=Manual by running with command-line --enable-metrics-reporting- 
for-testing --force-fieldtrials=UMAStability/SeparateLog/ and running my 
own modified UMA server and logging requests. Also, new unit tests.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240919 0039d316-1c4b-4281-b951-d872f2087c98
Use exact match when removing selector items on window destroying observation.

BUG=322119
TEST=WindowSelectorTest.Shutdown,WindowSelectorTest.RemoveDisplay

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

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

BUG=None
R=abarth@chromium.org, abarth

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240921 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240921
Fix some misc style errors.

I ran cpplint to find out if I was introducing any style errors and
found quite a few warnings, some of them look genuine, this CL has
fixes.

BUG=288015
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240922 0039d316-1c4b-4281-b951-d872f2087c98
Add switch to control app caching

BUG=None
R=abarth@chromium.org, abarth

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240923 0039d316-1c4b-4281-b951-d872f2087c98
base: Refactor DiscardableMemoryProvider to build and be tested on all platforms.

This also moves DiscardableMemory::CreateLockedMemory implementations
to platform specific files and allows us to choose what implementation
to use at runtime.

No change in behavior, refactor only.

BUG=327516
TEST=base_unitttest --gtest_filter=DiscardableMemory*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240924 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240924
Remove dependency on skia from remoting

Remoting uses types in webrtc/modules/desktop_capture to represent
rectangles, vectors and regions. This CL removes a few places left where
we were still using Skia types and removes Skia from DEPS.
Also removed leftover InvalidateRegion() declaration from
desktop_session_proxy.h .

R=jamiewalch@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240925 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240925