Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: chrome/browser/chromeos/file_manager/volume_manager.cc

Issue 314033002: Files.app: Flip the flag and enable MTP support by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_manager/volume_manager.cc
diff --git a/chrome/browser/chromeos/file_manager/volume_manager.cc b/chrome/browser/chromeos/file_manager/volume_manager.cc
index 9548f3c754cff2fd5d05c14bbb3e244b0de719bf..2ed9c2f4e00e0860c82dd15dce62991d7eef19d8 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc
@@ -395,9 +395,10 @@ void VolumeManager::Initialize() {
}
// Subscribe to storage monitor for MTP notifications.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kEnableFileManagerMTP) &&
- storage_monitor::StorageMonitor::GetInstance()) {
+ const bool disable_mtp =
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ chromeos::switches::kEnableFileManagerMTP) == "false";
+ if (!disable_mtp && storage_monitor::StorageMonitor::GetInstance()) {
storage_monitor::StorageMonitor::GetInstance()->EnsureInitialized(
base::Bind(&VolumeManager::OnStorageMonitorInitialized,
weak_ptr_factory_.GetWeakPtr()));
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698