Fix a crash when file chooser dialog is closed after the window is destroyed

Remove the |parent| property associated with the |dialog| to avoid a
NOT_REACHED() hit when the dialog is closed after the window is destroyed.

BUG=297877

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247362 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Returning kApp window handles in GetWebViewIds to make them discoverable (https://codereview.chromium.org/115243009/)

Reason for revert:
This CL breaks some java tests on Windows (http://build.chromium.org/p/chromium.chromedriver/builders/Win7/builds/1580) and Mac (http://build.chromium.org/p/chromium.chromedriver/builders/Mac%2010.6/builds/3207).

The root cause is that "Settings" is of type "app" in chrome 33, while it is of type "background_page" for chrome 31, 32 and TOT for some  reason that is unknown to me.

I'd like to revert this CL first, because I can't find a good fix for it and also found some other problems during looking into the break (I will put up a CL that points out these problems).

Original issue's description:
> Returning kApp window handles in GetWebViewIds to make them discoverable
> 
> Previously this change caused some tests to fail but should be fixed now with  https://chromiumcodereview.appspot.com/113673003/
> 
> BUG=
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242587

TBR=frankf@chromium.org,chrisgao@chromium.org,bustamante@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247363 0039d316-1c4b-4281-b951-d872f2087c98
Show register promos at the top of the cloud print printer list

Show registration promos in the cloud print printer list, and always show them
on top regardless of when they come in.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247364 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 165865:165883

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=165866:165883&mode=html
TBR=
BUG=

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247366 0039d316-1c4b-4281-b951-d872f2087c98
[Mac] Edit the profile name and avatar directly in the avatar bubble.

Clicking on the profile name will display a textfield, and hovering over the 
profile photo will display a custom button, which when clicked, will navigate
to the chrome://settings profile editing page.

The implementations is inspired from the views one in /chrome/browser/ui/views/profile_chooser_view.cc

Screenshots: https://docs.google.com/drawings/d/13gmNorwo9QbsZLi2UXMh7M2wkvcrvsIUuneUywuAhf0/edit?usp=sharing

BUG=324036

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247368 0039d316-1c4b-4281-b951-d872f2087c98
ChromeOS: Replace PO2TS::GetPrimaryAccountId() with SMB::GetAuthenticatedAccountId.

The functionality is the same, just moving the code to a new place.

BUG=333995

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247369 0039d316-1c4b-4281-b951-d872f2087c98
Fix duplicate condition in target base that was added in r233804.

That's where you know the gyp file is too large. :)

R=spang@chromium.org, thakis@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247370 0039d316-1c4b-4281-b951-d872f2087c98
Fix copy/paste bug where BytesTotal was used instead of BytesTransferred

BUG=337937

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247371 0039d316-1c4b-4281-b951-d872f2087c98
The issue was that the window slider was initialized and then immediately quiried if the slide was in progress. It happened to return "yes" in this case, which prevented the OverscrollNavOverlay window from being removed (at least until the user interacted with the screen).

Fixed by making sure WindowSlider::IsSlideInProgress() returns "false" if sliding has never been started.

BUG=336930

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247372 0039d316-1c4b-4281-b951-d872f2087c98
[Files.app] Call the parent constructor in the constructor of DirectoryTreeItem

DirectoryTreeItem didn't use the constructor of the parent class so it may be incompatible with the original tree.js and can't get the advantage of the tree.js (eg. a11y support). This patch has it call the constructor.

BUG=295899
TEST=manually tested
R=hirono@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247373 0039d316-1c4b-4281-b951-d872f2087c98
Remove a lot of dead code from the PrerenderTracker.

A lot of this is unused with the recent refactoring.

BUG=none
TEST=compiles

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247374 0039d316-1c4b-4281-b951-d872f2087c98
Add aboxhall to content/browser/accessibility/OWNERS

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247375 0039d316-1c4b-4281-b951-d872f2087c98
Extract extension-related renderer setup from ExtensionService

Move it into a new class RendererStartupHelper. This allows app_shell and
other clients of the src/extensions module use it without running code in
src/chrome.

Also ensure extension processes are added to the extensions::ProcessMap in
app_shell.

BUG=334710
TEST=Existing extensions browser_tests. Also, running app_shell manually still loads an extension.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247379 0039d316-1c4b-4281-b951-d872f2087c98
Make ServiceWorkerVersion::{Start,Stop}Worker take callback

Also adds content_browsertests for start & stop flow

BUG=313530
TEST=content_browsertests:ServiceWorkerBrowserTest.\*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247380 0039d316-1c4b-4281-b951-d872f2087c98
<webview>: Replace the secret object with the privates function

This CL also removes underscores from WebViewInternal members because all
members are private.

BUG=324859

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247381 0039d316-1c4b-4281-b951-d872f2087c98
Fix regression with r247334

GetLevelImage() does not handle GL_TEXTURE_CUBE_MAP.

TBR=reveman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247382 0039d316-1c4b-4281-b951-d872f2087c98
Add GetSequenceNumber function to PPB_Flash_Clipboard

This provides access to a sequence number which identifies the clipboard state.

BUG=333094

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247383 0039d316-1c4b-4281-b951-d872f2087c98
[Telemetry] Add power measurement to more benchmarks

Add power measurement to the following benchmarks:
- dromaeo
- image_decoding
- indexeddb_perf
- jsgamebench
- kraken
- media
- memory
- octane
- page_cycler
- robohornet_pro
- spaceport
- sunspider

BUG=336672

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247384 0039d316-1c4b-4281-b951-d872f2087c98
Re-use the result of ValueAsString where possible in PrefHashCalculator.

Whenever the initial hash doesn't match; ValueAsString was re-computed to check the legacy hash.

Since this is on the startup path and ValueAsString is the most expensive call in these checks, avoid computing it twice where possible.

BUG=330908

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

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