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)) |