Cleanup code that format session description.

Session description message contains version and codec even for disabled
channels. That's no longer necessary because all current hosts should ignore
these attributes for disabled channels.

BUG=144053

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198339 0039d316-1c4b-4281-b951-d872f2087c98
Respects previously saved browser show states if there are no (browser) windows on the desktop.

BUG=236166
TEST=unittest

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198340 0039d316-1c4b-4281-b951-d872f2087c98
Enable threaded compositing on more page sets.

This is to feel more confident that there are no performance
regressions on the bots (while not losing coverage as we sort
out the memory usage regression).

BUG=180025

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198341 0039d316-1c4b-4281-b951-d872f2087c98
Add histograms tracking Open/Create failure in SimpleCache

With this, we'll be able to track, and watch for problems with, loading entries
in the SimpleCache.

R=pasko,felipeg,jar
BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198342 0039d316-1c4b-4281-b951-d872f2087c98
Sanitize directory names from chrome.downloads.onDeterminingFilename.
Also fixes subdirectories in DownloadPathReservationTracker and a bug in downloads_api_unittest.cc where Events were incorrectly matching expectations (false positives).

BUG=181332

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198343 0039d316-1c4b-4281-b951-d872f2087c98
Fix the issue that SignEnterpriseChallenge won't succeed if the key does not exist.

Add PrepareKey() which calls AttestationFlow::GetCertificate() when the key
does not exist. Also, replace all MessageLoop::PostTask() with callback.Run().

BUG=chromium:236624

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198344 0039d316-1c4b-4281-b951-d872f2087c98
Docserver: fix wrong indentation in update_server.py causing it not to work.

TBR=cduvall@chromium.org
NOTRY=true

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

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198346 0039d316-1c4b-4281-b951-d872f2087c98
MV iframes: Add HTML/JS/CSS resources for MV iframe rendering.

There are two parts of Most Visited tiles we need to iframe for secure
rendering, the thumbnail image or domain element, and the title element.
These are the two sets of HTML/JS/CSS added here.

They share a common set of utilities for reading their config out of URL
parameters passed in as an iframe src.

This is split off from CL 14578005.
It depends on a JS API added in CL 14592003.

BUG=228940
R=arv@chromium.org, jhawkins@chromium.org, palmer@chromium.org, samarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198347 0039d316-1c4b-4281-b951-d872f2087c98
requestAutocomplete: error bubbles for invalid text inputs

BUG=230143

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198348 0039d316-1c4b-4281-b951-d872f2087c98
Use localized strings on the local NTP.

BUG=190223,235224

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198349 0039d316-1c4b-4281-b951-d872f2087c98
Implemented BluetoothDeviceWin::ConnectToProfile()

I mostly reused BluetoothServiceRecordWin to implement this method (for now). Even if we deprecate BluetoothServiceRecord, I think we could keep BluetoothServiceRecordWin for Windows platform.

After I submit this I will send out cleanup CLs to delete the unused code.

BUG=229636

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198350 0039d316-1c4b-4281-b951-d872f2087c98
[UMA] Rip out XML parts of the MetricsLogManager

BUG=109818

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198351 0039d316-1c4b-4281-b951-d872f2087c98
check begin is non-null before call std::set::insert(begin, end)

BUG=232556
TEST=asan bots no longer see the crashes in crbug.com/232556
R=kbr

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198353 0039d316-1c4b-4281-b951-d872f2087c98
Remove webkit_base_revision from telemetry backend

Test was failing because blink-based browsers report "537.37 (git@hash)".

Since we dont use this value anywhere, and since the new version info reported
is a hash (which is completely useless for version-based decision making),
remove it.

R=tonyg

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198354 0039d316-1c4b-4281-b951-d872f2087c98
Use system properties for heap profiler in Android instead of environment variables.

The following system properties are used instead of the environment variables.
HEAPPROFILE => heapprof
HEAP_PROFILE_ALLOCATION_INTERVAL => heapprof.allocation_interval
HEAP_PROFILE_DEALLOCATION_INTERVAL => heapprof.deallocation_interval
HEAP_PROFILE_INUSE_INTERVAL => heapprof.inuse_interval
HEAP_PROFILE_TIME_INTERVAL => heapprof.time_interval
HEAP_PROFILE_MMAP_LOG => heapprof.mmap_log
HEAP_PROFILE_MMAP => heapprof.mmap
HEAP_PROFILE_ONLY_MMAP => heapprof.only_mmap
DEEP_HEAP_PROFILE => heapprof.deep_heap_profile
HEAP_PROFILE_TYPE_STATISTICS => heapprof.type_statistics

BUG=162208
R=bulach@chromium.org, willchan@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198355 0039d316-1c4b-4281-b951-d872f2087c98
Removing branching code for bubble/dialog field trial.

BUG=172475

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198356 0039d316-1c4b-4281-b951-d872f2087c98
Remove unused method and field from leveldb::ChromiumEnv

I don't know the history, just that they are currently unused.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198357 0039d316-1c4b-4281-b951-d872f2087c98
ImageFamily: Added a comment explaining when to use Image or ImageSkia instead
of ImageFamily.

BUG=189137

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198358 0039d316-1c4b-4281-b951-d872f2087c98
Fail pretty printing if there are any unrecognized attributes.

This came up in https://codereview.chromium.org/14646002/

BUG=none

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

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