Commit ea3baa8d authored by nearbyh13@gmail.com's avatar nearbyh13@gmail.com

Remove command line flags for tweaking suggestions page.

BUG=352790
TEST=manually compile (chrome, brower_tests, unit_tests)

Review URL: https://codereview.chromium.org/356383002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281919 0039d316-1c4b-4281-b951-d872f2087c98
parent a03babce
......@@ -185,6 +185,7 @@ Joe Thomas <mhx348@motorola.com>
Joel Stanley <joel@jms.id.au>
Johannes Rudolph <johannes.rudolph@googlemail.com>
John Yani <vanuan@gmail.com>
John Yoo <nearbyh13@gmail.com>
Jonathan Hacker <jhacker@arcanefour.com>
Jongsoo Lee <leejongsoo@gmail.com>
Joone Hur <joone.hur@intel.com>
......
......@@ -128,22 +128,11 @@ void SuggestionsSourceTopSites::OnSuggestionsUrlsAvailable(
// static
base::TimeDelta SuggestionsSourceTopSites::GetFilterWidth() {
const CommandLine* cli = CommandLine::ForCurrentProcess();
const std::string filter_width_switch =
cli->GetSwitchValueASCII(switches::kSuggestionNtpFilterWidth);
unsigned int filter_width;
if (base::StringToUint(filter_width_switch, &filter_width))
return base::TimeDelta::FromMinutes(filter_width);
return base::TimeDelta::FromHours(1);
}
// static
history::VisitFilter::SortingOrder
SuggestionsSourceTopSites::GetSortingOrder() {
const CommandLine* cli = CommandLine::ForCurrentProcess();
if (cli->HasSwitch(switches::kSuggestionNtpGaussianFilter))
return history::VisitFilter::ORDER_BY_TIME_GAUSSIAN;
if (cli->HasSwitch(switches::kSuggestionNtpLinearFilter))
return history::VisitFilter::ORDER_BY_TIME_LINEAR;
return history::VisitFilter::ORDER_BY_RECENCY;
}
......@@ -1160,18 +1160,6 @@ const char kSSLVersionMin[] = "ssl-version-min";
// Starts the browser maximized, regardless of any previous settings.
const char kStartMaximized[] = "start-maximized";
// Controls the width of time-of-day filters on the 'suggested' ntp page, in
// minutes.
const char kSuggestionNtpFilterWidth[] = "suggestion-ntp-filter-width";
// Enables a normal distribution dropoff to the relevancy of visits with respect
// to the time of day.
const char kSuggestionNtpGaussianFilter[] = "suggestion-ntp-gaussian-filter";
// Enables a linear dropoff to the relevancy of visits with respect to the time
// of day.
const char kSuggestionNtpLinearFilter[] = "suggestion-ntp-linear-filter";
// Sets the supervised user ID for any loaded or newly created profile to the
// given value. Pass an empty string to mark the profile as non-supervised.
// Used for testing.
......
......@@ -325,9 +325,6 @@ extern const char kSSLInterstitialV2Guard[];
extern const char kSSLVersionMax[];
extern const char kSSLVersionMin[];
extern const char kStartMaximized[];
extern const char kSuggestionNtpFilterWidth[];
extern const char kSuggestionNtpGaussianFilter[];
extern const char kSuggestionNtpLinearFilter[];
extern const char kSupervisedUserId[];
extern const char kSupervisedUserSyncToken[];
extern const char kSyncShortInitialRetryOverride[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment