VideoCaptureImpl: added class commentary explaining safety of rampant Unretained(this).

R=wjia@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207136 0039d316-1c4b-4281-b951-d872f2087c98
Revert 207105 "Rejigger audio capture pipeline to work with sepa..."

> Rejigger audio capture pipeline to work with separate main+worker threads (Mac).
> 
> The audio capture pipeline (specifically: WebContentsAudioInputStream, VirtualAudio[In|Out]putStream, and FakeAudioConsumer) was implemented under the assumption that the thread pumping audio data was the same as the thread invoking Open/Start/Stop/Close.  This assumption was correct until SVN rev 204130 (https://codereview.chromium.org/14273018/), where these tasks were split across two separate threads.
> 
> This change restores functionality by utilizing the same design assumptions as the normal, "non-virtual" input/output stream implementations.  Data pumping is assumed to occur by one thread, and the implementation must block the control thread on a call to Stop() and not return from Stop() until the data pumping has ceased.
> 
> Augmented VirtualAudioInputStream unit testing to run all tests under the one-thread (non-Mac platforms) versus two-thread (Mac only) scenario.
> 
> BUG=249089
> TEST=media_unittests, content_unittests, manual confirmation
> 
> Review URL: https://chromiumcodereview.appspot.com/17122006

TBR=miu@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207144 0039d316-1c4b-4281-b951-d872f2087c98
Don't send PP_Vars/V8 values with cycles across PostMessage

This prevents PP_Vars/V8 values with cycles being transmitted across PostMessage. An undefined value will be sent instead and an error will be logged to the console.

BUG=236958

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207040

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207145 0039d316-1c4b-4281-b951-d872f2087c98
Add a histogram to track the number of webfonts in a page.

BUG=237060
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207146 0039d316-1c4b-4281-b951-d872f2087c98
cc: simplify mailbox management in ResourceProvider

With shared mailboxes, we don't need to consume before deleting, and we only need to produce once.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207147 0039d316-1c4b-4281-b951-d872f2087c98
cc: Deprioritize low res when not in smoothness mode

R=reveman@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207148 0039d316-1c4b-4281-b951-d872f2087c98
components: Clean up autofill DEPS entries.

BUG=138280, 140037
R=joi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207149 0039d316-1c4b-4281-b951-d872f2087c98
Exclude two tests that fail natively on win8.

BUG=251517
TBR=zhaoqin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207150 0039d316-1c4b-4281-b951-d872f2087c98
Automatically exclude *_win_browsertest.* from non-Windows builds.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207151 0039d316-1c4b-4281-b951-d872f2087c98
Crash immediately if we delete a Profile before its RenderProcessHosts shut
down.

BUG=248625,244718

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207152 0039d316-1c4b-4281-b951-d872f2087c98
Inline win\WebScreenFactoryInfo into RenderWidgetHostViewWin

This initializes the WebKit::WebScreenInfo directly in content. We could use
some of the ui/gfx helpers instead of raw win32 APIs for some of this, but
it doesn't appear we have any code for gathering the display depth or per-component
information or any other consumers of this information.

BUG=237267

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207153 0039d316-1c4b-4281-b951-d872f2087c98
Fix OmniboxViewViews paste code.

Rename Textfield::ReplaceSelection to InsertOrReplaceText.
(this is only used by OmniboxViewViews for custom pasting)

Fix the NativeTextfieldViews implementation.
Call InsertText, not ReplaceText; handle empty selection.
(InsertText will replace the current selection, if any)

Update, rename, expand OmniboxViewTest.Paste.

BUG=246167,131179
TEST=Pasting text amid existing omnibox text produces the expected text and opens the popup.
R=pkasting@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207154 0039d316-1c4b-4281-b951-d872f2087c98
drive: Move TestFileCacheState to file_cache_unittest.cc

It only serves FileCacheTest.

BUG=None
TEST=unit_tests
R=kinaba@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207155 0039d316-1c4b-4281-b951-d872f2087c98
[telemetry] Initial (autogenerated) documentation plus support scripts

This makes help(telemetry) show the classes and methods we care most about.
Then, it adds ./update_docs script that autogenerates a docs/ folder using
pydoc.writedoc. Finally, it adds docs/ which contains HTML documentation on telemetry generated by update_docs.


BUG=241616

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207156 0039d316-1c4b-4281-b951-d872f2087c98
Actually force a load of the runtime API in the background page.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207157 0039d316-1c4b-4281-b951-d872f2087c98
Remove suppressions for bug 175512

I belive the bug has been already fixed with recent changes in that code.
Beside that the code has been moved so the suppression is not useful 
either way.

BUG=175512

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207158 0039d316-1c4b-4281-b951-d872f2087c98
HistoryURLProviderTest: Fix Memory Leak

Before this change, there could be tasks still left on other threads when a test completes.

BUG=250666

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207159 0039d316-1c4b-4281-b951-d872f2087c98
drive: Create cache directories in DriveIntegrationService

'meta' directory is hosting both DBs for FileCache and ResourceMetadata.
Since these DBs are going to be merged into one, this directory should be created outside FileCache to initialize
the shared unified DB.

Create directories in DriveIntegrationService.
Remove directory related code from FileCache.
Move directory name constants to file_system_util.h
Pass temporary directory path as an argument, instead of using GetCacheDirectory() from DownloadOperation.

BUG=234487
TEST=unit_tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207160 0039d316-1c4b-4281-b951-d872f2087c98
MDnsClient: Process all records before alerting listeners

Change the notification structure in the MDnsListener to notify listeners after
the whole packet is processed. This should allow listeners to issue cache
queries for other records in the same packet in a synchronous manner.

In order to not issue invalid notifications in case the packet contains multiple
records that cancel each other out (and thus delete each other), store cache
keys in the list of notifications to send, rather than storing record pointers
directly.

BUG=
TEST=MDnsCacheTest.*,MDnsTest.*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207161 0039d316-1c4b-4281-b951-d872f2087c98
Do not set alpha channel mask if MRT is enabled and some buffers have alpha.

There is no perfect solution, but this is try to enable the alpha channel workaround in as many places as possible.

BUG=222419
TEST=webgl-draw-buffers.html pass on linux
R=gman@chromium.org

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

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