Updating trunk VERSION from 2012.0 to 2013.0

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272689 0039d316-1c4b-4281-b951-d872f2087c98
Make reconnection in response to video channel inactivity less aggressive.

Previously immediate reconnection was triggered by the video channel
becoming inactive. That can cause spurious reconnects on flaky networks.
Now the webapp will always wait for 10 seconds before trying to reconnect.

BUG=375568

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272695 0039d316-1c4b-4281-b951-d872f2087c98
Move extension API schema registration to ExtensionsClient.

BUG=368334

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272696 0039d316-1c4b-4281-b951-d872f2087c98
sync: Fix crash on backend initialize failure

Fixes a crash in ungraceful sync backend shutdown.  The problem was that
the sync backend host core might try to unregister itself as a listener
of some information generated in the ModelTypeRegistry, but the
ModelTypeRegistry did not exist if backend initialization failed.

The fix used here is to track whether or not we were registered for
these notifications in the first place, and only unregister if we
had previously registered successfully.  In the failure shutdown
case, the flag is unset, so we will not attempt to unregister.

BUG=376863

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272697 0039d316-1c4b-4281-b951-d872f2087c98
Remove HttpStreamFactory's NPN/SPDY globals, except for spdy_enabled.

Instead, each HttpNetworkSession is given its own immutable copies on
construction.  Other than spdy_enabled, none of the globals were
changed before this CL, anyways.

Also, setting spdy_enabled back to true after setting it to false no
longer clears the NPN list.

spdy_enabled is still a global because group policy can set it to
false at runtime.

BUG=372533
R=joaodasilva@chromium.org, rch@chromium.org, sergeyu@chromium.org, sgurun@chromium.org, sky@chromium.org, ttuttle@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272698 0039d316-1c4b-4281-b951-d872f2087c98
Revert 272671 "Implementation of leveldb-backed PrefStore."

The CL broke asan/lsan bots on linux, and chromiumos e.g.

LevelDBPrefStoreTest.BasicObserver (run #1):
Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x5babfb in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:55
    #1 0x61f3699 in LevelDBPrefStore::OnStorageRead(scoped_ptr\u003CLevelDBPrefStore::ReadingResults, base::DefaultDeleter\u003CLevelDBPrefStore::ReadingResults> >) chrome/browser/prefs/leveldb_pref_store.cc:406
    #2 0x61f2ea7 in LevelDBPrefStore::ReadPrefs() chrome/browser/prefs/leveldb_pref_store.cc:329
    #3 0x336efee in LevelDBPrefStoreTest_BasicObserver_Test::TestBody() chrome/browser/prefs/leveldb_pref_store_unittest.cc:97
...

Indirect leak of 4096 byte(s) in 1 object(s) allocated from:
    #0 0x5bad4b in operator new[](unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:57
    #1 0x7e66db5 in AllocateNewBlock third_party/leveldatabase/src/util/arena.cc:62
    #2 0x7e66db5 in leveldb::Arena::AllocateFallback(unsigned long) third_party/leveldatabase/src/util/arena.cc:33
    #3 0x7e2a88a in NewNode third_party/leveldatabase/src/db/skiplist.h:182
    #4 0x7e2a88a in leveldb::SkipList\u003Cchar const*, leveldb::MemTable::KeyComparator>::SkipList(leveldb::MemTable::KeyComparator, leveldb::Arena*) third_party/leveldatabase/src/db/skiplist.h:325
    #5 0x7e2a76e in leveldb::MemTable::MemTable(leveldb::InternalKeyComparator const&) third_party/leveldatabase/src/db/memtable.cc:24
    #6 0x7e084ce in leveldb::DBImpl::DBImpl(leveldb::Options const&, std::string const&) third_party/leveldatabase/src/db/db_impl.cc:120
    #7 0x7e1bfb0 in leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**) third_party/leveldatabase/src/db/db_impl.cc:1449
    #8 0x61ef0a2 in LevelDBPrefStore::OpenDB(base::FilePath const&, LevelDBPrefStore::ReadingResults*) chrome/browser/prefs/leveldb_pref_store.cc:113
    #9 0x61efcae in LevelDBPrefStore::DoReading(base::FilePath const&) chrome/browser/prefs/leveldb_pref_store.cc:158
    #10 0x61f2dc0 in LevelDBPrefStore::ReadPrefs() chrome/browser/prefs/leveldb_pref_store.cc:325
...

> Implementation of leveldb-backed PrefStore.
> 
> This is not hooked up yet, migration code from Json-backed stores is needed, among other things.
> 
> BUG=362814
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271602
> 
> Review URL: https://codereview.chromium.org/169323003

TBR=dgrogan@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272700 0039d316-1c4b-4281-b951-d872f2087c98
Revert 272611 "Add support for distilling current WebContents"

The test added in this CL DomDistillerTabUtilsBrowserTest.TestSwapWebContents
consistently fails on some bots, e.g.
http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%284%29/builds/41414
http://build.chromium.org/p/chromium.mac/builders/Mac10.7%20Tests%20%283%29/builds/27225
http://build.chromium.org/p/chromium.mac/builders/Mac10.6%20Tests%20%283%29/builds/48492

> Add support for distilling current WebContents
> 
> This CL adds the utilities needed for using the current WebContents when
> distilling web pages.
> 
> BUG=361939
> 
> Review URL: https://codereview.chromium.org/266073003

TBR=nyquist@chromium.org

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

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272706 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Don't expose --disable-gpu-compositing, only set internally. (https://codereview.chromium.org/300523002/)

Reason for revert:
Makes a bunch of virtual/softwarecompositing tests Timeout on Mac
https://code.google.com/p/chromium/issues/detail?id=377145

Original issue's description:
> Don't expose --disable-gpu-compositing, only set internally.
> 
> The flag isn't meant to be set externally, it doesn't work on most
> configs. It's only meant internally to make sure the renderer doesn't
> try to use GPU when the browser is in software.
> 
> BUG=None
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272636

TBR=jbauman@chromium.org,piman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272707 0039d316-1c4b-4281-b951-d872f2087c98
Refactor MetricsLogChromeOS to ChromeOSMetricsProvider.

Turns MetricsLogChromeOS into a metrics::MetricsProvider. Splits the
ChromeOS-specific unittests out from the MetricsLog test into separate
ChromeOSMetricsProvider tests. Also moves LogChromeOSCrash() from
MetricsService to ChromeOSMetricsProvider.

BUG=374221
R=asvitkine@chromium.org
TBR=derat, pam

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272708 0039d316-1c4b-4281-b951-d872f2087c98
Cast: Only ACK decododable frames

Also, add an optimization to not decode frames if we are behind and multiple frames are currently decodable.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272709 0039d316-1c4b-4281-b951-d872f2087c98
Pass response headers to the PDF plugin

The streamsPrivate API provides the response headers for the original URL request in the stream details. This passes them along to the plugin with the URL.

This also adds the ability for the plugin to cancel the stream, which is necessary if the plugin wants to re-request the original URL.

BUG=303491

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272710 0039d316-1c4b-4281-b951-d872f2087c98
sync: Refactor StatusChangeChecker hierarchy

Refactors the StatusChangeChecker class hierarchy to allow for more code
sharing.  Allows children of StatusChangeChecker to share logic around
performing a blocking wait, checking exit conditions, and timing out.

As before, the sharing is acheived through inheritance.  We should move
to a delegation pattern if this becomes too complicated, but I think the
use of inheritance still makes sense for now.

This is a pre-requisite for a future patch that adds a new kind of
StatusChangeChecker that does not listen to ProfileSyncService changes.
I expect that there will be many more kinds of StatusChangeCheckers
defined in the future.  This refactoring will help us share code between
them.

This is attached to issue 97780 and 95742 because it will enable us to
write more StatusChangeCheckers that we can use to refactor tests that
currently listen for snapshots and self-notifications.

BUG=97780,95742

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272711 0039d316-1c4b-4281-b951-d872f2087c98
Cleanup: Use base::CommandLine in mojo/

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272712 0039d316-1c4b-4281-b951-d872f2087c98
Linux Breakpad: Do not pass the Linux distro to non-browser processes.

After r271640, they no longer need this information, since the browser
process sets it in crash reports.

TBR=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272713 0039d316-1c4b-4281-b951-d872f2087c98
Remove OVERRIDEs in RendererWebKitPlatformSupportImpl.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272714 0039d316-1c4b-4281-b951-d872f2087c98
Show ServiceWorkers in chrome://inspect.

To show the information about ServiceWorkers I added iframe of "chrome://serviceworker-internals/#iframe" to chrome://inspect.
And I used postMessage() to achieve the cross-domain messaging between chrome://inspect and chrome://serviceworker-internals.

BUG=358657

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272715 0039d316-1c4b-4281-b951-d872f2087c98
Adds some debugging code for tracking down a crash

Crash seems to indicate we're registering twice for a
notification. Perhaps we're calling ScheduleLoad and TabIsLoading for
the same tab. Only way I could see that happening is if ShowBrowser()
activated some other tab. This should help isolate if that is
happening.

BUG=368236
TEST=none
R=marja@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272716 0039d316-1c4b-4281-b951-d872f2087c98
Update chromium-side ServiceWorker directory owners

BUG=n/a
NOTRY=true

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

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