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

Unified Diff: chrome/browser/search/search.cc

Issue 282183002: [AiS] Enable AiS flag on all platforms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/search/search.h ('k') | chrome/browser/search_engines/search_terms_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 409d14b4d863e5bd67b941dfe1fba5da5d3db6ba..b5b9f21bc194a2f5f7069a2ae357421613780795 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -332,7 +332,7 @@ struct NewTabURLDetails {
default:
// Use the local New Tab otherwise.
return NewTabURLDetails(local_url, state);
- };
+ }
}
GURL url;
@@ -510,6 +510,11 @@ bool IsSuggestPrefEnabled(Profile* profile) {
profile->GetPrefs()->GetBoolean(prefs::kSearchSuggestEnabled);
}
+bool IsAnswersInSuggestEnabled() {
Peter Kasting 2014/05/15 20:30:55 I'd prefer not to create a helper for this. (The
groby-ooo-7-16 2014/05/15 22:32:37 Done.
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableAnswersInSuggest);
+}
+
GURL GetInstantURL(Profile* profile, int start_margin,
bool force_instant_results) {
if (!IsInstantExtendedAPIEnabled() || !IsSuggestPrefEnabled(profile))
« no previous file with comments | « chrome/browser/search/search.h ('k') | chrome/browser/search_engines/search_terms_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698