Ensure all subviews of NotifierButton are released properly.

The image view for the icon is sometimes not freed when the icon is
never added to the view hierarchy.  This change transfers ownership
to the button instead of views.

NOTRY=true
TBR=mukai@chromium.org
BUG=314392

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232643 0039d316-1c4b-4281-b951-d872f2087c98
Fixing drag and drop visibility issues of tabs on a visiting desktop

A new browser will be created when a user drags a tab off a tab strip. This browser will automatically get the context of its parent.
When running in multi profile / multiple desktop mode, a browser can visit another user's desktop. In that case that tab will get the ownership of the original browser and made invisible since it belongs to an invisible user. This patch is transferring the visibility of the newly created browser to the current user. Note that this cannot be automatically done since usually browsers get created for "a user" and are automatically visible and owned by "that user" - not the current one. This case is special since it requires that the browser is created from the current user for another user.

While fixing this I have found one problem in the MultiUserWindowManager where the initial show state was not stored and taken into account on transferring to another desktop.

BUG=309793
TEST=unittest & visual test

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232644 0039d316-1c4b-4281-b951-d872f2087c98
Fix the GTV build.

- caused by the CL: https://codereview.chromium.org/48773005

R=qinmin@chromium.org, xhwang@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232648 0039d316-1c4b-4281-b951-d872f2087c98
Revert 232620 "Ensure callback objects held by the Indexed DB"

IndexedDBBrowserTestSingleProcess.RenderThreadShutdownTest started to fail
reliably on "XP Tests (dbg)(2)" after this landed:

http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20(dbg)(2)

(look at build 34228 and up)

> Ensure callback objects held by the Indexed DB
> dispatcher are released before WebKit and V8
> are torn down, since the callback objects hold
> V8 handles.
> 
> BUG=308988
> TBR=dgrogan@chromium.org
> 
> Review URL: https://codereview.chromium.org/50333004

TBR=marja@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232649 0039d316-1c4b-4281-b951-d872f2087c98
Exposed current 'timezone' and 'supportedTimezones' valued in chrome.chromeosInfoPrivate.get().
Added chrome.chromeosInfoPrivate.set() method and permitted changing the current 'timezone'.

BUG=313879
TEST=ExtensionApiTest.ChromeOSInfoPrivateTest

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232650 0039d316-1c4b-4281-b951-d872f2087c98
Decouple RulesCacheDelegate from RulesRegistry

This is a prerequisite for declarative API support in <webview>. <webview>s should not cache their rules.

BUG=312461

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232651 0039d316-1c4b-4281-b951-d872f2087c98
Updating trunk VERSION from 1690.0 to 1691.0

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232653 0039d316-1c4b-4281-b951-d872f2087c98
GN: toolchain threading cleanup

Remove the thread-unsafe toolchain pointer on the otherwise-threadsafe Settings object. I replaced it with the toolchain label, and moved the is_default flag from the toolchain to the Settings object.

This required that I pass the toolchain around in a few more places, but also simplifies some other cases.

I removed the toolchain prefix from Ninja rules for the default toolchain since that's not necessary any more for GYP compat.

This fixes an annoying double-free in the toolchain manager. I think my current refactor will clean this up in a later phase.

R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232657 0039d316-1c4b-4281-b951-d872f2087c98
Allow multiple TtsDispatchers to respond to IPCs.

Multiple TtsDispatchers can exist in the same process; messages are
routed to the correct WebSpeechSynthesizerClient using utterance
ids. The bug was that the first TtsDispatcher was returning 'true'
from the OnControlMessageReceived message router even if it got
an IPC that wasn't intended for that client, so the second
TtsDispatcher wouldn't get a chance to see the IPC.

BUG=313855

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232658 0039d316-1c4b-4281-b951-d872f2087c98
Revert 232657 "GN: toolchain threading cleanup"

Broke linux clang bots:

../../tools/gn/ninja_helper_unittest.cc:20:9:error: field 'settings' will be initialized after field 'toolchain' [-Werror,-Wreorder]

This happened on your try jobs too.

> GN: toolchain threading cleanup
> 
> Remove the thread-unsafe toolchain pointer on the otherwise-threadsafe Settings object. I replaced it with the toolchain label, and moved the is_default flag from the toolchain to the Settings object.
> 
> This required that I pass the toolchain around in a few more places, but also simplifies some other cases.
> 
> I removed the toolchain prefix from Ninja rules for the default toolchain since that's not necessary any more for GYP compat.
> 
> This fixes an annoying double-free in the toolchain manager. I think my current refactor will clean this up in a later phase.
> 
> R=scottmg@chromium.org
> 
> Review URL: https://codereview.chromium.org/51693002

TBR=brettw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232661 0039d316-1c4b-4281-b951-d872f2087c98
Dispatches touch events to captured window

We were doing this before I switched us back to the per window
CaptureClient. We need this since current code assumes SetCapture
captures both mouse and touch events.

This also turned up a bug in CompoundEventFilter. It may end up
showing the cursor on the wrong root, resulting in the cursor
remaining hidden. As we don't need the cursor hiding logic on windows
I'm turning it off for us (windows hides the cursor for us).

TEST=see bug
BUG=311569
R=ananta@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232662 0039d316-1c4b-4281-b951-d872f2087c98
Make our codebase less entertaining.

No intended behavior change.

BUG=none
TBR=owners
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232663 0039d316-1c4b-4281-b951-d872f2087c98
Use a better default location for add media gallery picker.

BUG=313017

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232664 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Updates the message of progress center.

Previously the progress center was showing fake messages. This CL replace with
the fake messages with the real string assets.

Along the way, the CL removes unused string assets used by the butter bar.

BUG=277432
TEST=manually
R=yoshiki@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232665 0039d316-1c4b-4281-b951-d872f2087c98
cros: Add timezone selector to OOBE

Add tiemzone selector for keyboard driven OOBE.

BUG=313766
R=zelidrag@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232666 0039d316-1c4b-4281-b951-d872f2087c98
Mojo should use a command buffer instead of raw GL

This CL switches the native_viewport from using raw GL calls to
using an in-process command buffer. I've plumbed the client
interface to the command buffer as far as the
NativeViewportController, but we really ought to plumb it all
the way into the sample_app.

Of course, once the sample_app moves out-of-process, we'll want
to switch to an out-of-process command buffer.

R=ben@chromium.org, jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232669 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Fix a CSS path in a JavaScript file.

CSS directory is moved from css to foreground/css.
This CL fix a CSS path in a JavaScript file.

BUG=none
TEST=manually
TBR=yoshiki@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232671 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Let Files.app delay to show the progress bar for delete operation.

Delete operations are usually complete quickly.  So we would not like to show
the progress bar at first.  If the operation takes more than
ProgressCenterHandler.PENDING_TIME_MS_, we adds the item to the progress center.

BUG=277432
TEST=manually
R=yoshiki@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232672 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 161228:161231

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

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

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

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