Hide ephemeral apps from UI

Added an IS_EPHEMERAL flag for extensions to identify ephemeral apps.
Ephemeral apps are integrated into the extension system, but we use
the flag to hide them from UI such as the app launcher, NTP and
extension management page.

Garbage collection of unused ephemeral apps will be implemented in a
future patch.

This feature is hidden behind the "enable-ephemeral-apps" switch.

BUG=312460

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237014 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Files.app: Add a semicolon to util.js.

This CL fixes the code style.

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237015 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove a redundant type chromeos::ibus::Rect.

BUG=N/A

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237019 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Launch hosted apps as windows by default for streamlined hosted apps.

This CL makes streamlined hosted apps launch as windows by default. It removes
the |default_pref_value| parameter from GetLaunchType and GetLaunchContainer so
that LAUNCH_DEFAULT is used as the default launch type everywhere.

It also makes taskbar pins of hosted apps launch with the same container as
launching from the NTP and app launcher.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237025 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Stop manipulating TranslateBubbleViewModel(Impl) when a WebContents is destroyed

Since a TranslateBubbleView was alive even when its WebContents was destroyed, invalid operations might be occured. This CL makes TranslateBubbleView observe the WebContents's life and close itself correctly when the WebContents is died.


BUG=320497
TEST=unit_tests --gtest_filter=TranslateBubbleViewTest.*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237026 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Moves the IBUS_ENABLE_SYNC_MODE hack to ui::InitializeInputMethod().

There is no reentrant version of setenv(3C) and we need to call it in a very early stage.  I think ui::InitializeInputMethod() is the right place.  Moves setenv code into it.

BUG=321200
TEST=Ran browser_tests (HelpPageWebUITest.testOpenHelpPage) with TSAN.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237027 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
SyncFS: Add RemoteToLocalSyncer test


BUG=240165
TEST=unit_tests --gtest_filter=RemoteToLocalSyncerTest.*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237030 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
[Drive] Update obsolete comment on DriveServiceInterface

ContinueGetResourceList was split into GetRemaining{File,Change}List.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237031 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
drive: Skip ID entry keys when iterating metadata

BUG=None
R=kinaba@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237032 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disble FormStructureBrowserTest on Linux

FormStructureBrowserTest.DataDrivenHeuristics16 is failing on "Linux Tests"
http://build.chromium.org/p/chromium.linux/builders/Linux%20Tests/builds/7100

TBR=isherman@chromium.org
BUG=323093

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237033 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert 236746 "Files.app: Enable VolumeManager to find a volume ..."

> Files.app: Enable VolumeManager to find a volume by using any paths.
> 
> Currently VolumeManager can find a volume by using only mount paths.  But after
> introducing the multiprofile functionality, mount paths cannot be expected in
> advance. This CL enables the getVolume method of VolumeManager to find a volume by
> using any paths.
> 
> BUG=302090
> TEST=manually
> 
> Review URL: https://codereview.chromium.org/64753005

TBR=hirono@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237034 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Files.app: Fix summarizing of progress items.

In the closed view of the progress center, a single item should be shown
directly and multiple items should be shown as a summirized item.
Originally the summarizing method had bugs such that:

1. 1 progressing item and 1 canceled item are summarized. But we should show 1
progressing item directly because a user does not concern canceled items.

2. 2 error items are summirized as an item having progressing state. But it
should be summirized as an item having error state.

This patch turns the method to the currect behavior.

Along the way, this patch also fixes a behavior of toggle button
to prevent the button acting as a cancel button.

BUG=321483
TEST=manually

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237036 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove validating the mount path.

This validation is useless, since it doesn't prevent any abusing, nor errors.

TEST=None
BUG=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237037 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert 237037 "Remove validating the mount path."

Because of reverting 237034, we need to revert this patch too.

> Remove validating the mount path.
> 
> This validation is useless, since it doesn't prevent any abusing, nor errors.
> 
> TEST=None
> BUG=None
> 
> Review URL: https://codereview.chromium.org/84833003

TBR=mtomasz@chromium.org

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

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

This directory is used to hold locally deleted entries which are waiting for server side deletion.
search_metadata.cc looks up parent entries to know if each entry is under the trash or not.

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237044 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
[SyncFS] Implement LocalToRemoteSyncer::UploadNewFile

BUG=240165

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237045 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Run upload tasks as USER_INITIATED in drive::SyncClient at first.

See the associated bug for the context. In short, the first UPLOAD
tasks from operations are always pushed as a result of explicit
user operation on Drive files and thus should be run immediately.

BUG=315000

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237046 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Create an internal class for InputMethodConfiguration.

This class easily enables to manage the lifetime of objects which are used with InputMethodManager.  I will make a class for Accessibility and this class manages the Accessibility class.

BUG=271228

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@237050 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Don't show the Translate bubble when the tab is not focused

BUG=317431
TEST=manual
TBR=sky@chromium.org

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

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

BUG=23026006

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

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