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