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

Unified Diff: chrome/browser/ui/webui/ntp/most_visited_handler.h

Issue 17114002: Field trial removing tiles from NTP if URL is already open - for 1993 clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed rebase issues Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/ntp/most_visited_handler.h
diff --git a/chrome/browser/ui/webui/ntp/most_visited_handler.h b/chrome/browser/ui/webui/ntp/most_visited_handler.h
index 0fc412655d921dbcee216974eb6ad940d44800f7..756d401a524a970d6bdbfc3e854ffbb73909dbde 100644
--- a/chrome/browser/ui/webui/ntp/most_visited_handler.h
+++ b/chrome/browser/ui/webui/ntp/most_visited_handler.h
@@ -90,9 +90,10 @@ class MostVisitedHandler : public content::WebUIMessageHandler,
// Returns the key used in url_blacklist_ for the passed |url|.
std::string GetDictionaryKeyForUrl(const std::string& url);
- // Looks at the browser's currently open URLs and removes any matching URLs
- // from |pages_value_|.
- void RemovePageValuesMatchingOpenTabs();
+ // Removes recommended URLs if a matching URL is already open in the Browser,
+ // if the Most Visited Tile Placement experiment is enabled, and the client is
+ // in the experiment group.
+ void MaybeRemovePageValues();
// Sends pages_value_ to the javascript side and resets page_value_.
void SendPagesValue();

Powered by Google App Engine
This is Rietveld 408576698