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

Side by Side Diff: chrome/browser/search/search.h

Issue 14685004: Add finch flag for rendering a recently closed link on the local ntp. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_SEARCH_SEARCH_H_ 5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_
6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // so this simply returns whether GetInstantURL() is a valid URL. 113 // so this simply returns whether GetInstantURL() is a valid URL.
114 // NOTE: This method expands the default search engine's instant_url template, 114 // NOTE: This method expands the default search engine's instant_url template,
115 // so it shouldn't be called from SearchTermsData or other such code that would 115 // so it shouldn't be called from SearchTermsData or other such code that would
116 // lead to an infinite recursion. 116 // lead to an infinite recursion.
117 bool IsInstantEnabled(Profile* profile); 117 bool IsInstantEnabled(Profile* profile);
118 118
119 // Returns true if the aggressive local NTP fallback is enabled in field 119 // Returns true if the aggressive local NTP fallback is enabled in field
120 // trials. 120 // trials.
121 bool IsAggressiveLocalNTPFallbackEnabled(); 121 bool IsAggressiveLocalNTPFallbackEnabled();
122 122
123 // Returns true if the recently closed link on the local NTP is enabled in field
124 // trials.
125 bool IsRecentlyClosedNTPLinkEnabled();
samarth 2013/05/03 04:52:45 How about ShouldShowRecentlyClosedOnNTP?
jeremycho 2013/05/03 06:30:29 Done.
126
123 // Returns true if |my_url| matches |other_url|. 127 // Returns true if |my_url| matches |other_url|.
124 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); 128 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url);
125 129
126 // ----------------------------------------------------- 130 // -----------------------------------------------------
127 // The following APIs are exposed for use in tests only. 131 // The following APIs are exposed for use in tests only.
128 // ----------------------------------------------------- 132 // -----------------------------------------------------
129 133
130 // Forces the Instant Extended API to be enabled for tests. 134 // Forces the Instant Extended API to be enabled for tests.
131 void EnableInstantExtendedAPIForTesting(); 135 void EnableInstantExtendedAPIForTesting();
132 136
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 const TemplateURLRef& ref, 174 const TemplateURLRef& ref,
171 int start_margin); 175 int start_margin);
172 176
173 // Returns whether the default search provider has a valid Instant URL in its 177 // Returns whether the default search provider has a valid Instant URL in its
174 // template. Exposed for testing only. 178 // template. Exposed for testing only.
175 bool DefaultSearchProviderSupportsInstant(Profile* profile); 179 bool DefaultSearchProviderSupportsInstant(Profile* profile);
176 180
177 } // namespace chrome 181 } // namespace chrome
178 182
179 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 183 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698