Check native is initialized before sending VSync updates.

R=jcivelli@chromium.org,klobag@chromium.org
BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165627 0039d316-1c4b-4281-b951-d872f2087c98
Add the "file_handlers" manifest key for platform apps to replace "intents".

This patch just adds a synonym for the "intents" functionality, but the
eventual intention is to remove the intents code from extensions altogether.

R=benwells@chromium.org,jhawkins@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165628 0039d316-1c4b-4281-b951-d872f2087c98
Calls default window procedure for WM_KILLFOCUS.

Without default window procedure, the actual focus does not change correctly.

BUG=158562
TEST=Manually done

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165629 0039d316-1c4b-4281-b951-d872f2087c98
add quotes around -stderr_mask 12 for browser wrapper
TBR=bruening@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165630 0039d316-1c4b-4281-b951-d872f2087c98
Stop passing the parent hwnd to the plugin process on initialization.

This was only used on Windows. Windowed plugins get reparented in the browser anyways, so just creat it initially parented to the desktop (it's hidden then). For windowless plugins, made the plugin process watch WM_WINDOWPOSCHANGING for the dummy window used for activation so that it can update the value used for NPNVnetscapeWindow.

I've verified that the subtle code that was added to make IMEs work correctly still functions.

This is a followup to r165373 and is another step in getting rid of the parent hwnd in the renderer, which doesn't work in Aura anymore since it changes when a tab drag to a new window occurs.
Review URL: https://codereview.chromium.org/11362045

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165631 0039d316-1c4b-4281-b951-d872f2087c98
cc: Avoid using upload term in relation to resources.

Rename ResourceProvider::upload() to ResourceProvider::setPixels() and
PrioritizedTexture::upload() to PrioritizedTexture::setPixels().

BUG=
TEST=cc_unittests


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165632 0039d316-1c4b-4281-b951-d872f2087c98
Add TestInterface methods for adding shill stub devices and services

This will help write functional tests for network handlers written on top of the Shill client code.

BUG=154072
TEST=NetworkSmsHandlerTest.SmsHandlerDbusStub passes


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165633 0039d316-1c4b-4281-b951-d872f2087c98
Use extensions socket permission for TCP/UDP socket APIs in Pepper

This CL is first step in removing whitelist of extensions.
It makes permission check same as extensions do.

BUG=124311
TEST=browser_tests for TCP/UDP

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165376

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165634 0039d316-1c4b-4281-b951-d872f2087c98
Mock quota for syncable file system now that http://code.google.com/p/chromium/issues/detail?id=155242 has landed.

BUG=153501


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165635 0039d316-1c4b-4281-b951-d872f2087c98
Temporarily disable PluginTest.OpenPopupWindowWithPlugin

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165636 0039d316-1c4b-4281-b951-d872f2087c98
Fixed setting focus in settings' popups.

This patch fixes a bug, when opening popups in Settings page and not updating focus. The problem was especially significant when ChromeVox was enabled.

With this patch, focus is set to the first focusable control in a popup. This is now default behavior, which can be overriden though, to focus any another control.

TEST=1. Enter Settings, 2. Go to show 'advanced settings' using tab and enter keys, 3. Enter Content Settings using enter key.
BUG=158884


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165637 0039d316-1c4b-4281-b951-d872f2087c98
Don't return NULL from AudioManager:GetMessageLoop()

Returning NULL leads to a bunch of hairy corner cases where
other clients on the audio thread need to constantly check if
the message loop is still valid.

Returning NULL from GetMessageLoop seems to be a relic from
the past, so for don't do it anymore.  If we see browser
shutdown hangs in the field we can revert and consider
alternate solutions.

BUG=157957
TEST=all tests still pass.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165638 0039d316-1c4b-4281-b951-d872f2087c98
[MediaGallery] Cleanup: Rename MtpDeviceDelegate* to MTPDeviceDelegate*.

Rename all function/class names to use "MTP" instead of "mtp"

BUG=none
TEST=none
TBR=kinuko

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165639 0039d316-1c4b-4281-b951-d872f2087c98
drive: Add root directory information to chrome:drive-internals.

The root entry is not supposed to vary often, but I suspect some
corruption is happening in the case of the associated bug. It would
be good to have the info on the debug console page.

BUG=159087
TEST=Open chrome:drive-internals and verify "File System Contents" section
 shows the information of "drive" entry.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165640 0039d316-1c4b-4281-b951-d872f2087c98
Call dbus_bus_register at the beginning of connection.

According to dbus specification in "Message Bus Messages" section (http://dbus.freedesktop.org/doc/dbus-specification.html),
"Before an application is able to send messages to other applications it must send the org.freedesktop.DBus.Hello message to the message bus to obtain a unique name. "

To meets this specification, we should call dbus_bus_register function which call org.freedesktop.DBus.Hello. For the dbus session or system bus, this function is called in dbus_bus_get function.


BUG=159088
TEST=ran dbus_unittests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165641 0039d316-1c4b-4281-b951-d872f2087c98
Rename DriveServiceInterface::CreateDirectory to AddNewDirectory to avoid hitting the macro on Windows.


BUG=159085


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165642 0039d316-1c4b-4281-b951-d872f2087c98
Implement LocalFileChangeTracker::GetNextChangedURLs for local sync

This change includes:

- record changes with time-based sequence numbers (as well as changestamps) so that we can mildly prioritize older changes for local sync
- add GetNextChangedURLs() which returns changes in last-modified-time order
- cleanup some existing methods in LocalFileChangeTracker
- fix destruction order

BUG=156599
TEST=LocalFileChangeTrackerTest.Changes, LocalFileChangeTrackerTest.NextChangedURLs*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165643 0039d316-1c4b-4281-b951-d872f2087c98
Fixes a wrong assumption that the secondary display is indexed by 1.

Probably the code is kinda old and didn't use a proper method...

BUG=158593


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165644 0039d316-1c4b-4281-b951-d872f2087c98
When accepted_languages are "en-US" and "en", 
a dictionary for "en-AU" is used for accepted language "en". 

To be consistent with language preference page, languages only available in spellchecker are shown. 

BUG=84802
TEST=SpellCheckHostTest.* 

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165645 0039d316-1c4b-4281-b951-d872f2087c98
WebKit roll 133190:133191 (because I needed 133191)


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