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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 1523593002: Add an option in language settings for activating the IME menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failure. Created 4 years, 11 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
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 9
10 // TODO(rsorokin): alphabetize all of these switches so they 10 // TODO(rsorokin): alphabetize all of these switches so they
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // "" - default 320 // "" - default
321 // "override" - regions data is read first 321 // "override" - regions data is read first
322 // "hide" - VPD values are hidden 322 // "hide" - VPD values are hidden
323 const char kCrosRegionsMode[] = "cros-regions-mode"; 323 const char kCrosRegionsMode[] = "cros-regions-mode";
324 const char kCrosRegionsModeOverride[] = "override"; 324 const char kCrosRegionsModeOverride[] = "override";
325 const char kCrosRegionsModeHide[] = "hide"; 325 const char kCrosRegionsModeHide[] = "hide";
326 326
327 // Forces CrOS region value. 327 // Forces CrOS region value.
328 const char kCrosRegion[] = "cros-region"; 328 const char kCrosRegion[] = "cros-region";
329 329
330 // Enables IME menu
331 const char kEnableImeMenu[] = "enable-ime-menu";
332
330 bool WakeOnWifiEnabled() { 333 bool WakeOnWifiEnabled() {
331 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 334 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
332 } 335 }
333 336
334 bool MemoryPressureHandlingEnabled() { 337 bool MemoryPressureHandlingEnabled() {
335 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == 338 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) ==
336 kMemoryPressureHandlingOff) { 339 kMemoryPressureHandlingOff) {
337 return false; 340 return false;
338 } 341 }
339 return true; 342 return true;
(...skipping 26 matching lines...) Expand all
366 if (option == kAggressiveCacheDiscardThreshold) 369 if (option == kAggressiveCacheDiscardThreshold)
367 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_CACHE_DISCARD; 370 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_CACHE_DISCARD;
368 if (option == kAggressiveTabDiscardThreshold) 371 if (option == kAggressiveTabDiscardThreshold)
369 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; 372 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD;
370 if (option == kAggressiveThreshold) 373 if (option == kAggressiveThreshold)
371 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; 374 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE;
372 375
373 return MemoryPressureMonitor::THRESHOLD_DEFAULT; 376 return MemoryPressureMonitor::THRESHOLD_DEFAULT;
374 } 377 }
375 378
379 bool IsImeMenuEnabled() {
380 return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableImeMenu);
381 }
382
376 } // namespace switches 383 } // namespace switches
377 } // namespace chromeos 384 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698