[Telemetry] Add cold and warm session restore benchmarks

BUG=258105

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230522 0039d316-1c4b-4281-b951-d872f2087c98
Call SetWindowPos when RWHVWin is hidden

This makes RenderWidgetHostViewWin::SetBounds() call ::SetWindowPos even
when it thinks the view is hidden. The canonical view size for RWHVWin is
stored on the HWND, so we have to set it here in or we'll completely forget
the new size.

Prior to r229428, RenderWidgetHostViewWin stored its own is_hidden_ bit which
was incorrectly false when opening a tab in the background so we'd call
::SetWindowPos() in this path anyway.

BUG=310460
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230523 0039d316-1c4b-4281-b951-d872f2087c98
Add ScopedPK11SlotList to scoped_nss_types.h

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230524 0039d316-1c4b-4281-b951-d872f2087c98
Kill ImmersiveFullscreenConfiguration and remove flags for disabling immersive fullscreen

BUG=307622
TEST=None
R=jamescook
TBR=sky (For removal of ImmersiveFullscreenConfiguration in tests and straightforward revert of https://codereview.chromium.org/14622007)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230525 0039d316-1c4b-4281-b951-d872f2087c98
Convert X11 AdvancedOptionsUtilities to generic Linux platforms

The files being changed on this CL don't touch any X11 specific code, so they can used by other Linux platforms, in particular for Chrome target works under Ozone.
    
BUG=295089

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230526 0039d316-1c4b-4281-b951-d872f2087c98
[NaCl SDK] gonacl appengine: Automate uploading to commondatastorage.

I've added a Makefile to gonacl_appengine/src. It supports the following
commands:

make
make foo
make upload
make upload-foo
make publish
make publish-foo

where "foo" is the name of an example.

The buildbots will run "make upload", which will upload a continuous build.
When you want to use a new version, run "make publish REVISION=1234" to publish
that revision.

BUG=none
R=sbc@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230527 0039d316-1c4b-4281-b951-d872f2087c98
Fix crash when ending systrace webview

Now call TraceLog::Flush from a new thread having a message loop.

BUG=309627

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

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

Add a class that holds all locally unacknowledged invalidations and
their state. It is not used anywhere outside of tests.

This class is part of an attempt to refactor the InvalidatorStorage
class. That class stores pieces of the invalidations component's state
in preferences. It currently has some simple getter and setter methods
for things like the client ID and bootstrat data, and some more
complicated methods that related to storing unacked invalidations.

The goal is to eventually move the complex logic related to
invalidations out of the InvalidationStorage class, and into the
UnackedInvalidationSet class. The UnackedInvalidationSet class can
be owned by the SyncInvalidationListener, and periodically passed back
to the InvalidationStorage class on a separate thread for serialization.

The motivation for this refactoring is not merely aesthetic. The
UnackedInvalidationSet handles certain trickles related use cases
that the current storage system can not. Extending the existing storage
system to support these features would have made the code much harder to
understand. This approach lets us add functionality and simplify the
code at the same time.

BUG=233437

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230529 0039d316-1c4b-4281-b951-d872f2087c98
The net-internals page shouldn't have clickable links to prerenders.

Clicking on those links doesn't use the prerender; the session storage
won't match. Making them not links is much less deceptive to
developers.

R=mmenke
BUG=309650

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230530 0039d316-1c4b-4281-b951-d872f2087c98
Add '*' to owners for gfx.gyp and events.gyp.

gfx and events didn't use to have their own gyp files, and were in ui.gyp
instead. Now that they are separate, pull in the per-file owner rule for
ui.gyp for gfx.gyp and events.gyp too.

BUG=none
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230531 0039d316-1c4b-4281-b951-d872f2087c98
Add debugging info for software compositor swap.

The ReceivedBadMessage has been getting hit in the wild, so add some extra histograms and CHECKS to try to find out why.

BUG=
R=piman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230532 0039d316-1c4b-4281-b951-d872f2087c98
Update swig to work correctly with Mac OS X 10.9.

BUG=305277
TEST=as in bug
TBR=brettw@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230534 0039d316-1c4b-4281-b951-d872f2087c98
[Ozone] Update SoftwareSurfaceFactoryOzone implementation

Pending SurfaceFactoryOzone interface changes in https://codereview.chromium.org/23862004/

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230535 0039d316-1c4b-4281-b951-d872f2087c98
Remove apps::ShellWindow dependency on c/c/extensions/extension_constants.h

Move the resizing of the app icon into Chrome's launcher code, as the fact
that the icon needs to be resized is a Chrome/Ash concept, not a generic
apps concept.

BUG=310174
TEST=On Chrome OS, running a v2 app with multiple windows, then clicking on the shelf icon shows a menu that has icons next to each item. A sample app: https://chrome.google.com/webstore/detail/windowing-api-sample/ldenchfohdfgggloeimambnckhjpedgc

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230539 0039d316-1c4b-4281-b951-d872f2087c98
Revert 230334 "Improve and simplify AudioOutputDispatcher."

Likely cause of flakiness on Win7 Debug (NVIDIA) bot.

BUG=310838
> Improve and simplify AudioOutputDispatcher.
> 
> AudioOutputDispatcher does a number of things which no longer make
> sense in a world where we don't create tons of physical streams:
> 
>     - Streams are not immediately recycled but instead inserted
>     into a paused queue.  This was done to improve cycle time
>     when physical streams were rapidly paused and played.
> 
>     - If any stream was paused previously and then closed, every
>     new stream opened will open two streams.  Again this was to
>     improve cycle time for paused and played streams.
> 
> For HTML5, this has been handled by AudioRendererMixer for some time.
> WebRTC, WebAudio, and PPAPI generally don't start and stop streams
> repeatedly in a way that this code is beneficial.
> 
> As such, all of that code has been removed.  As a hedge, one stream
> is left open after Close() until the close timer fires.  This allows
> cycle time to be improved in cases of interleaved Start/Stop cycles.
> 
> I've additionally cleaned up the code to use std::algorithm where
> applicable, removed unnecessary WeakPtr setup, and cleaned up the
> unittests.
> 
> BUG=none
> TEST=audio plays, unittests pass.
> 
> Review URL: https://codereview.chromium.org/27605002

TBR=dalecurtis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230543 0039d316-1c4b-4281-b951-d872f2087c98
ozone: Allow the output to be written to a file.

If ozone is started with --ozone-dump-file flag, then the output of the display
is dumped to a file in PNG format. The path of the file can be specified as
well, for example: "--ozone-dump-file=/tmp/ozone.png". /dev/null can be used as
the path to avoid any real file left over in the system, but still run through
this custom surface-factory implementation.

BUG=none
R=dnicoara@chromium.org, rjkroege@chromium.org, sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230544 0039d316-1c4b-4281-b951-d872f2087c98
Disable image transport surface on all windows machines.

We want to try using the direct presentation path everywhere, so blacklist texture sharing on all machines. If this works, we can delete the image transport surface code later.
We've made the image transport surface work even with the sandbox at full strength, so remove the code that reduces the GPU sandbox in this case.

BUG=304369
R=kbr@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230545 0039d316-1c4b-4281-b951-d872f2087c98
Move Gtk initialization earlier in BrowserMain.

In order to work around bugs in glib, it must be initialized before
any threads are started in the process. If this is not done then the
process will intermittently hang upon exit.

BUG=309093
R=erg@chromium.org, jorgelo@chromium.org, sky@chromium.org

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

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