Chromium Code Reviews| 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 | |
|
xiyuan
2017/05/24 18:28:17
nit: restore
newcomer
2017/05/25 23:10:51
Done.
| |
| 7 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/metrics/field_trial_params.h" | |
| 8 #include "ui/app_list/app_list_features.h" | |
| 8 | 9 |
| 9 namespace app_list { | 10 namespace app_list { |
| 10 namespace switches { | 11 namespace switches { |
| 11 | 12 |
| 12 // Specifies the chrome-extension:// URL for the contents of an additional page | 13 // Specifies the chrome-extension:// URL for the contents of an additional page |
| 13 // added to the app launcher. | 14 // added to the app launcher. |
| 14 const char kCustomLauncherPage[] = "custom-launcher-page"; | 15 const char kCustomLauncherPage[] = "custom-launcher-page"; |
| 15 | 16 |
| 16 // If set, the app list will not be dismissed when it loses focus. This is | 17 // If set, the app list will not be dismissed when it loses focus. This is |
| 17 // useful when testing the app list or a custom launcher page. It can still be | 18 // useful when testing the app list or a custom launcher page. It can still be |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 66 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 66 kEnableDriveSearchInChromeLauncher)) | 67 kEnableDriveSearchInChromeLauncher)) |
| 67 return true; | 68 return true; |
| 68 | 69 |
| 69 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 70 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 70 kDisableDriveSearchInChromeLauncher)) | 71 kDisableDriveSearchInChromeLauncher)) |
| 71 return false; | 72 return false; |
| 72 | 73 |
| 73 return true; | 74 return true; |
| 74 } | 75 } |
| 75 | |
|
xiyuan
2017/05/24 18:28:18
nit: restore
newcomer
2017/05/25 23:10:51
Done.
| |
| 76 } // namespace switches | 76 } // namespace switches |
| 77 } // namespace app_list | 77 } // namespace app_list |
| OLD | NEW |