| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_H_ |
| 7 | 7 |
| 8 class Profile; | 8 class Profile; |
| 9 | 9 |
| 10 namespace chrome { | 10 namespace chrome { |
| 11 namespace search { | 11 namespace search { |
| 12 | 12 |
| 13 // Returns whether the Instant extended API is enabled for the given |profile|. | 13 // Returns whether the Instant extended API is enabled for the given |profile|. |
| 14 // |profile| may not be NULL. | 14 // |profile| may not be NULL. |
| 15 bool IsInstantExtendedAPIEnabled(const Profile* profile); | 15 bool IsInstantExtendedAPIEnabled(const Profile* profile); |
| 16 | 16 |
| 17 // If |force| is true then the instant extended API is force to be enabled. |
| 18 void SetForceInstantExtendedAPIEnabledForTesting(bool force); |
| 19 |
| 17 } // namespace search | 20 } // namespace search |
| 18 } // namespace chrome | 21 } // namespace chrome |
| 19 | 22 |
| 20 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_H_ | 23 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_H_ |
| OLD | NEW |