Commit 0db57093 authored by kinaba's avatar kinaba Committed by Commit bot

Remove --enable-filemanager-mtp flag.

It's now default and unlikely to be turned off.

BUG=407455
TEST=manually tested MTP works and about:flags doesn't have the entry for MTP.

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

Cr-Commit-Position: refs/heads/master@{#293098}
parent 8277604b
......@@ -427,16 +427,6 @@ const Experiment::Choice kAnswersInSuggestChoices[] = {
};
#endif
#if defined(OS_CHROMEOS)
const Experiment::Choice kEnableFileManagerMTPChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
{ IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
chromeos::switches::kEnableFileManagerMTP, "true" },
{ IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
chromeos::switches::kEnableFileManagerMTP, "false" }
};
#endif
const Experiment::Choice kEnableSettingsWindowChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
{ IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
......@@ -1760,15 +1750,6 @@ const Experiment kExperiments[] = {
ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSavePasswordBubble,
switches::kDisableSavePasswordBubble)
},
#if defined(OS_CHROMEOS)
{
"enable-filemanager-mtp",
IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME,
IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION,
kOsCrOS,
MULTI_VALUE_TYPE(kEnableFileManagerMTPChoices)
},
#endif
// TODO(tyoshino): Remove this temporary flag and command line switch. See
// crbug.com/366483 for the target milestone.
{
......
......@@ -6,7 +6,6 @@
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
......@@ -24,9 +23,7 @@
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/media_galleries/fileapi/mtp_device_map_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chromeos/chromeos_switches.h"
#include "chromeos/disks/disk_mount_manager.h"
#include "components/storage_monitor/storage_monitor.h"
#include "content/public/browser/browser_context.h"
......@@ -318,10 +315,7 @@ void VolumeManager::Initialize() {
weak_ptr_factory_.GetWeakPtr()));
// Subscribe to storage monitor for MTP notifications.
const bool disable_mtp =
CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
chromeos::switches::kEnableFileManagerMTP) == "false";
if (!disable_mtp && storage_monitor::StorageMonitor::GetInstance()) {
if (storage_monitor::StorageMonitor::GetInstance()) {
storage_monitor::StorageMonitor::GetInstance()->EnsureInitialized(
base::Bind(&VolumeManager::OnStorageMonitorInitialized,
weak_ptr_factory_.GetWeakPtr()));
......
......@@ -87,9 +87,6 @@ const char kEnableEmbeddedSignin[] = "enable-embedded-signin";
// Enabled sharing assets for installed default apps.
const char kEnableExtensionAssetsSharing[] = "enable-extension-assets-sharing";
// Enables MTP support in Files.app.
const char kEnableFileManagerMTP[] = "enable-filemanager-mtp";
// Enables notifications about captive portals in session.
const char kEnableNetworkPortalNotification[] =
"enable-network-portal-notification";
......
......@@ -44,7 +44,6 @@ CHROMEOS_EXPORT extern const char kEnableChromeVoxNext[];
CHROMEOS_EXPORT extern const char kEnableConsumerManagement[];
CHROMEOS_EXPORT extern const char kEnableEmbeddedSignin[];
CHROMEOS_EXPORT extern const char kEnableExtensionAssetsSharing[];
CHROMEOS_EXPORT extern const char kEnableFileManagerMTP[];
CHROMEOS_EXPORT extern const char kEnableFirstRunUITransitions[];
CHROMEOS_EXPORT extern const char kEnableKioskMode[];
CHROMEOS_EXPORT extern const char kEnableNetworkPortalNotification[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment