| Index: chrome/browser/search/search.cc
|
| diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
|
| index 9351f1e4ce05f8b7a15da53ee20b2ec699a3263f..9e35e0573c17ad87f55e616f4a61daebd1c2d0be 100644
|
| --- a/chrome/browser/search/search.cc
|
| +++ b/chrome/browser/search/search.cc
|
| @@ -68,6 +68,9 @@ const char kLocalOnlyFlagName[] = "local_only";
|
| // Key for specifying remote NTP behavior trials.
|
| const char kUseRemoteNTPOnStartupFlagName[] = "use_remote_ntp_on_startup";
|
|
|
| +// Key for showing the recent tabs link on the local NTP.
|
| +const char kRecentTabsOnNTPFlagName[] = "show_recent_tabs";
|
| +
|
| // Constants for the field trial name and group prefix.
|
| const char kInstantExtendedFieldTrialName[] = "InstantExtended";
|
| const char kGroupNumberPrefix[] = "Group";
|
| @@ -516,6 +519,18 @@ bool ShouldPreferRemoteNTPOnStartup() {
|
| return false;
|
| }
|
|
|
| +bool ShouldShowRecentTabsOnNTP() {
|
| + FieldTrialFlags flags;
|
| + if (GetFieldTrialInfo(
|
| + base::FieldTrialList::FindFullName(kInstantExtendedFieldTrialName),
|
| + &flags, NULL)) {
|
| + return GetBoolValueForFlagWithDefault(
|
| + kRecentTabsOnNTPFlagName, false, flags);
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url) {
|
| return MatchesOrigin(my_url, other_url) && my_url.path() == other_url.path();
|
| }
|
|
|