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

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: Rebase. 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // so this simply returns whether GetInstantURL() is a valid URL. 134 // so this simply returns whether GetInstantURL() is a valid URL.
135 // NOTE: This method expands the default search engine's instant_url template, 135 // NOTE: This method expands the default search engine's instant_url template,
136 // so it shouldn't be called from SearchTermsData or other such code that would 136 // so it shouldn't be called from SearchTermsData or other such code that would
137 // lead to an infinite recursion. 137 // lead to an infinite recursion.
138 bool IsInstantEnabled(Profile* profile); 138 bool IsInstantEnabled(Profile* profile);
139 139
140 // Returns true if 'use_remote_ntp_on_startup' flag is enabled in field trials 140 // Returns true if 'use_remote_ntp_on_startup' flag is enabled in field trials
141 // to always show the remote NTP on browser startup. 141 // to always show the remote NTP on browser startup.
142 bool ShouldPreferRemoteNTPOnStartup(); 142 bool ShouldPreferRemoteNTPOnStartup();
143 143
144 // Returns true if the recent tabs link should be shown on the local NTP in
145 // field trials.
146 bool ShouldShowRecentTabsOnNTP();
147
144 // Returns true if |my_url| matches |other_url|. 148 // Returns true if |my_url| matches |other_url|.
145 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); 149 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url);
146 150
147 // Transforms the input |url| into its "privileged URL". The returned URL 151 // Transforms the input |url| into its "privileged URL". The returned URL
148 // facilitates grouping process-per-site. The |url| is transformed, for 152 // facilitates grouping process-per-site. The |url| is transformed, for
149 // example, from 153 // example, from
150 // 154 //
151 // https://www.google.com/search?espv=1&q=tractors 155 // https://www.google.com/search?espv=1&q=tractors
152 // 156 //
153 // to the privileged URL 157 // to the privileged URL
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // template. Exposed for testing only. 221 // template. Exposed for testing only.
218 bool DefaultSearchProviderSupportsInstant(Profile* profile); 222 bool DefaultSearchProviderSupportsInstant(Profile* profile);
219 223
220 // Let tests reset the gate that prevents metrics from being sent more than 224 // Let tests reset the gate that prevents metrics from being sent more than
221 // once. 225 // once.
222 void ResetInstantExtendedOptInStateGateForTest(); 226 void ResetInstantExtendedOptInStateGateForTest();
223 227
224 } // namespace chrome 228 } // namespace chrome
225 229
226 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 230 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698