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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 2348913002: Port storage manager to MD settings. (Closed)
Patch Set: histograms.xml Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/chromeos_switches.h" 5 #include "chromeos/chromeos_switches.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Disables GAIA services such as enrollment and OAuth session restore. Used by 154 // Disables GAIA services such as enrollment and OAuth session restore. Used by
155 // 'fake' telemetry login. 155 // 'fake' telemetry login.
156 const char kDisableGaiaServices[] = "disable-gaia-services"; 156 const char kDisableGaiaServices[] = "disable-gaia-services";
157 157
158 // Disables HID-detection OOBE screen. 158 // Disables HID-detection OOBE screen.
159 const char kDisableHIDDetectionOnOOBE[] = "disable-hid-detection-on-oobe"; 159 const char kDisableHIDDetectionOnOOBE[] = "disable-hid-detection-on-oobe";
160 160
161 // Avoid doing expensive animations upon login. 161 // Avoid doing expensive animations upon login.
162 const char kDisableLoginAnimations[] = "disable-login-animations"; 162 const char kDisableLoginAnimations[] = "disable-login-animations";
163 163
164 // Disables storage manager in MD Settings.
165 const char kDisableMdStorageManager[] = "disable-md-storage-manager";
166
164 // Disables mtp write support. 167 // Disables mtp write support.
165 const char kDisableMtpWriteSupport[] = "disable-mtp-write-support"; 168 const char kDisableMtpWriteSupport[] = "disable-mtp-write-support";
166 169
167 // Disables the multiple display layout UI. 170 // Disables the multiple display layout UI.
168 const char kDisableMultiDisplayLayout[] = "disable-multi-display-layout"; 171 const char kDisableMultiDisplayLayout[] = "disable-multi-display-layout";
169 172
170 // Disables notifications about captive portals in session. 173 // Disables notifications about captive portals in session.
171 const char kDisableNetworkPortalNotification[] = 174 const char kDisableNetworkPortalNotification[] =
172 "disable-network-portal-notification"; 175 "disable-network-portal-notification";
173 176
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // rather than the kiosk app mode. 249 // rather than the kiosk app mode.
247 const char kEnableKioskMode[] = "enable-kiosk-mode"; 250 const char kEnableKioskMode[] = "enable-kiosk-mode";
248 251
249 // Disables material design OOBE UI. 252 // Disables material design OOBE UI.
250 const char kDisableMdOobe[] = "disable-md-oobe"; 253 const char kDisableMdOobe[] = "disable-md-oobe";
251 254
252 // Enables notifications about captive portals in session. 255 // Enables notifications about captive portals in session.
253 const char kEnableNetworkPortalNotification[] = 256 const char kEnableNetworkPortalNotification[] =
254 "enable-network-portal-notification"; 257 "enable-network-portal-notification";
255 258
259 // Enables storage manager in MD Settings.
260 const char kEnableMdStorageManager[] = "enable-md-storage-manager";
michaelpg 2016/10/01 01:41:05 shouldn't we only have one of these flags?
fukino 2016/10/03 18:40:42 I used ENABLE_DISABLE_VALUE_TYPE to have a default
michaelpg 2016/10/03 23:44:44 Generally yes, is it important that we be able to
fukino 2016/10/04 09:03:53 Got it. I updated the CL to use a single value fla
261
256 // Enables suggestions while typing on a physical keyboard. 262 // Enables suggestions while typing on a physical keyboard.
257 const char kEnablePhysicalKeyboardAutocorrect[] = 263 const char kEnablePhysicalKeyboardAutocorrect[] =
258 "enable-physical-keyboard-autocorrect"; 264 "enable-physical-keyboard-autocorrect";
259 265
260 // Enables request of tablet site (via user agent override). 266 // Enables request of tablet site (via user agent override).
261 const char kEnableRequestTabletSite[] = "enable-request-tablet-site"; 267 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
262 268
263 // Enables using screenshots in tests and seets mode. 269 // Enables using screenshots in tests and seets mode.
264 const char kEnableScreenshotTestingWithMode[] = 270 const char kEnableScreenshotTestingWithMode[] =
265 "enable-screenshot-testing-with-mode"; 271 "enable-screenshot-testing-with-mode";
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 479 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
474 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 480 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
475 return false; 481 return false;
476 482
477 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 483 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
478 kTestCrosGaiaIdMigrationStarted; 484 kTestCrosGaiaIdMigrationStarted;
479 } 485 }
480 486
481 } // namespace switches 487 } // namespace switches
482 } // namespace chromeos 488 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698