Remove ibus-mozc specific resources

BUG=None
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206671 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Cleanup: Use TestBrowserThreadBundle in SyncFileSystem tests

BUG=none
TEST=unit_tests:SyncFile*,LocalFile*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206673 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Enable caching in the slide view.

Before, only thumbnails in the slide view were cached. This patch adds the cache to the main image, so browsing images is much faster.

TEST=Enter Files.app, open a big image twice. The second time it should be very fast.
BUG=239237

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206674 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Added constants for Android user policy to the cloud policy protobufs.

These constants allow the server to determine that the user policies being
requested are meant for an Android device.

BUG=248527

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206675 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
drive: Initialize FileCache and ResourceMetadata in one place.

To merge DBs of FileCache and ResourceMetadata,
we should move many code from FileCache to somewhere more appropriate.
(e.g. metadata DB direcotry should be created at a higher level.)

To make future work easy, let's initialize these classes in one place, on the blocking pool.

BUG=234487
TEST=unit_tests
R=kinaba@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206677 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Translate: use always TLS to communicate with a translate server

Add setSecureConnection parameter to initialize element library.
This make element library to use always TLS to communicate with
a translate server for translation.

BUG=164584
R=estade@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206678 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Create a copy of each app's shim bundle in the app's app_data_path.

This allows app shims to be deleted from the Applications directory by
the user.

BUG=168080,229086
TEST=Create a shortcut for a platform app.
Delete the shortcut.
Start the app, an app shim should appear in the dock.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206679 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Create the initial PolicyDomainDescriptor for extensions.

This used to be created on NOTIFICATION_EXTENSIONS_READY, which was removed
from this code in https://chromiumcodereview.appspot.com/15521003. However,
during startup all the load events happen before the event is signaled, and
therefore the PolicyDomainDescriptor for extensions isn't created.

BUG=240968

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206686 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
drive: Introduce chrome/browser/drive

This directory will contain utility code shared by SyncFileSystem
and Google Drive integration on Chrome OS. The shared utility code
has been placed in chrome/browser/google_apis, but it wasn't the
right place as c/b/google_apis was meant to contain low level code
for communicating with the Google API servers. This is why we had
lots of exceptions in c/b/google_apis/DEPS. These exceptions will
be all gone once the move is complete.

Move DriveNotificationManager as a first step.

BUG=244325
TEST=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206689 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
SyncFS: Enable DriveFileSyncServiceSyncTest on DriveAPI


BUG=234557
TEST=unit_tests --gtest_filter=\*DriveFileSyncServiceSyncTest\*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206690 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Re-enable sync service when it gets Drive push notifications.

As it usually indicates we have network connection and
reachable to Drive service.

BUG=248055
TEST=manual
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206693 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
drive: Stop persisting 'mounted' state of cache entries

There is no need to persist this state to the next boot.
Fix FileCache::Remove's behavior to return FILE_ERROR_IN_USE when the entry is dirty or mounted.

BUG=160487
TEST=unit_tests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206694 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Translate: remove resolved TODO

TBR=hajimehoshi@chromium.org
BUG=none
TEST=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix switching to a newly created managed user

Changes 'self' to 'this' since we're in a member function (using self didn't
work properly).

R=pam@chromium.org, jhawkins@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206696 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Translate: Changed the rule to determine which language should be translated

Along with changing the UI, the flow sholud be changed.  Currently, a page in an Accept language is not translated.  After the new UI, a page in an Accept language MAY be translated.

Current:
  1) If a language is listed in Accept languages, the page should not be translated.
  2) If a language is blacklisted by prefs, the page should not be translated.
  3) Otherwise, the page may be translated.

After this CL (with switches::kEnableTranslateSettings):
  1) If a language is blacklisted by prefs, and if 1.1) or 1.2), the page should not be translated.
    1.1) the language is listed in Accept languages
    1.2) the language cannot be Accept languages
  2) Otherwise, the page may be translated.

Design Doc: https://docs.google.com/a/google.com/document/d/1mxM00l1h2e59HKPVZR_1DY07jeCg4RwHWu7JDvmWx3w/edit

BUG=243235
TBR=hajimehoshi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206697 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Cancel non-upload jobs in drive::JobScheduler via cancellation closure.

Although the cancellation for uploading jobs is not wired to this path yet,
it is working for other types of jobs. Let's start migrating from where it is
possible.

BUG=231209
TEST=Manually tested cancelling tasks in task tray and Files.app progress bar.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206698 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
SyncFS: Avoid infinite loop on EnsureSyncRootIsNotInMyDrive


BUG=250505
TEST=n/a

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206700 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Change google_apis::DriveUploader interface to return CancelCallback.

It only changes the interface and just returns null for now. The implementation
will come soon.

BUG=250712

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206701 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
SyncFS: Show more imformative message for FORBIDDEN error from Drive.

BUG=248055
TEST=manual

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206703 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Instead of displaying a camera icon only display a microphone icon in the omnibox if the microphone stream is captured (but not the camera stream). 

It is a relanding CL of https://codereview.chromium.org/12706018, with some modifications on the UI.

XIB changes:
* Removed  mediaMenusContainer_, since we will add the media menu(s) and reposition them programingly.

chrome/app/theme/theme_resources.grd:
TBR=sail@chromium.org

BUG=172780
TEST=unit_tests  --gtest_filter="*ContentSettingBubbleModelTest*" 
./out/Debug/unit_tests --gtest_filter="*TabSpecificContentSettingsTest*"
manual test
(1) Visit https://www.corp.google.com/~henrika/no_crawl/webrtc/manual/peerconnection.html
(2) Allow/Deny the audio or/and camera permission on the infobar. 
(3) Verify the UI correctly shows what permission is being accessed.


Screenshots for the mic-only, camera-only, mic-and-camera access.
http://imgur.com/2wVJ31A
http://imgur.com/eTabsIN
http://imgur.com/NxJI4we

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@206704 4ff67af0-8c30-449e-8e8b-ad334ec8d88c