| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/app_list/app_list_switches.h" | 5 #include "ui/app_list/app_list_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace app_list { | 9 namespace app_list { |
| 10 namespace switches { | 10 namespace switches { |
| 11 | 11 |
| 12 // If set, folder will be enabled in app list UI. | 12 // If set, folder will be enabled in app list UI. |
| 13 const char kEnableFolderUI[] = "enable-app-list-folder-ui"; | 13 const char kEnableFolderUI[] = "enable-app-list-folder-ui"; |
| 14 | 14 |
| 15 // If set, the voice search is enabled in app list UI. | 15 // If set, the voice search is disabled in app list UI. |
| 16 const char kEnableVoiceSearch[] = "enable-app-list-voice-search"; | 16 const char kDisableVoiceSearch[] = "disable-app-list-voice-search"; |
| 17 | 17 |
| 18 bool IsFolderUIEnabled() { | 18 bool IsFolderUIEnabled() { |
| 19 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI); | 19 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI); |
| 20 } | 20 } |
| 21 | 21 |
| 22 } // namespcae switches | 22 } // namespcae switches |
| 23 } // namespace app_list | 23 } // namespace app_list |
| OLD | NEW |