Make host/url references configurable.

In C++, they're all passed as optional command line parameters (like google_apis/gaia already allows us to do with the gaia oauth urls). So one can start the host with a monstrosity such as:

out/Debug/remoting_me2me_host out/Debug/remoting_start_host --gaia-host=accounts.google.com --oauth-user-info-url=https://www.googleapis.com/oauth2/v1/userinfo --chromoting-bot-jid=remoting@bot.talk.google.com --chromoting-base-url=https://www.googleapis.com/chromoting/v1 --talk-server-host=talk.google.com --talk-server-port=5222 -[-disable-talk-server-tls] --oauth2-token-url=https://accounts.google.com/o/oauth2/token

In Javascript and IT2Me, unfortunately we don't have a command line, so instead we put all these settings in plugin_settings.js, and the javascript passes them all into the it2me plugin as appropriate. They can then be changed by manually hacking plugin_settings.js and manifest.json in the build output, changing the remoting.settings object at runtime (although any new hosts you configure that are not in the manifest's CSP won't work), or, preferrably, by passing them via environment variables to the build, and letting build-webapp.py do its magic - for example, like with this:

GOOGLE_CLIENT_ID_REMOTING=<clientid> GOOGLE_CLIENT_SECRET_REMOTING=<secret> OAUTH2_ACCOUNTS_HOST=https://accounts.google.com OAUTH2_API_HOST=https://www.googleapis.com CHROMOTING_BOT_JID=remoting@bot.talk.google.com CHROMOTING_API_HOST=https://www.googleapis.com TALK_SERVER_HOST=talk.google.com TALK_SERVER_PORT=5222 TALK_SERVER_USE_TLS=true TALK_GADGET_HOST_SUFFIX=talkgadget.google.com OAUTH2_REDIRECT_HOST_PREFIX=https://chromoting-oauth. TALK_GADGET_HOST_PREFIX=https://chromoting-client. ninja -C out/Debug remoting_webapp

I've tested with me2me (host and client) and it2me (share and access), and verified both that the defaults work as before (without command line parameters), and that I can substitute test server hostnames in all of those parameters.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180622 0039d316-1c4b-4281-b951-d872f2087c98
[cros] Allow file select dialogs from extension popups

BUG=169148


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180623 0039d316-1c4b-4281-b951-d872f2087c98
Pass ScopedJavaGlobalRef to bind() by value

ScopedJavaGlobalRef now has a copy constructor, so we can make the
code simpler (no base::Owned() explanations) by just passing by
value.

BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180624 0039d316-1c4b-4281-b951-d872f2087c98
Recognize "\r\n" (Windows) line endings in base::JSONParser so that line numbers in error reports won't confuse users.

BUG=167424
TEST=Unit tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180625 0039d316-1c4b-4281-b951-d872f2087c98
This patch is to implement. storage.onAvailableCapacityChanged event.
Current implementation adopts polling-based method to check the 
free space change periodically at one second time interval. 

Once a listener is attached to the onAvailableCapacityChanged event,
all storages are being watched, and the event will be emitted as soon
as the free space changes. The watching will be stopped when the
last event listener is removed.

BUG=163862
TEST=browser_tests --gtest_filter=SystemInfoStorageApiTest.Storage

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180626 0039d316-1c4b-4281-b951-d872f2087c98
This patch ensures that whenever a sync operation in TemplateURLService adds or updates a TemplateURL corresponding to a prepopulated engine, the latest built-in version of the prepopulated engine data is used.

We also bump the the version number of prepopulated_engines.json to fix currently broken databases.

BUG=171350

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180627 0039d316-1c4b-4281-b951-d872f2087c98
Move DownloadFileOperation to base_operations.

The operation can be shared between GData WAPI and Drive API v2. So, as the
preparation of the migration, this moves it and its test to base_operations.
Note that the unittest for the moved class is in base_operation_server_unittest.cc. The reason why it is split from the existing base_operation_unittest.cc is that unfortunately the test won't work on Android. The cause is as same as gdata_wapi_operations_unittest/drive_api_operations_unittest. So, disabled it on Android in the same way with them.

BUG=148627
TEST=Ran unit_tests.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180628 0039d316-1c4b-4281-b951-d872f2087c98
Register autofill sync types on mobile

This change registers the autofill and autofillProfile sync types on
Android (in addition to desktop platforms).

Also add an AUTOFILL type to ModelTypes.

BUG=174232


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180629 0039d316-1c4b-4281-b951-d872f2087c98
Remove service name param from requestFileSystem JavaScript API.

BUG=172562
TBR=benwells@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180630 0039d316-1c4b-4281-b951-d872f2087c98
Fix comments in directory_contents.js

BUG=none
TEST=none


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180631 0039d316-1c4b-4281-b951-d872f2087c98
Windows: Add d3dcompiler_46.dll to installer.

It will be used in preference of version 43 on Vista and later where it is supported.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180632 0039d316-1c4b-4281-b951-d872f2087c98
Gets desktop win-aura to use non-win aura assets. There are likely
more places that need to be converted from USE_ASH/USE_AURA to
HostDesktopType, but this covers all the images.

BUG=171859
TEST=none
R=ben@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180633 0039d316-1c4b-4281-b951-d872f2087c98
App shortcut creation on Linux now removes localized versions of the Name key.

Previously, if the Chrome .desktop file had a localized string for the app name,
and the user was in a non-US locale, the localized string would be copied
(unmodified) to the app shortcut, and the app name would display as a localized
version "Google Chrome" or "Chromium Browser" instead of the actual app name.

BUG=173324


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

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