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

Unified Diff: chrome/browser/ui/tabs/tab_strip_model_utils.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: Consolidated GetOpenURLs and addressed comments 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/tabs/tab_strip_model_utils.h
diff --git a/chrome/browser/ui/tabs/tab_strip_model_utils.h b/chrome/browser/ui/tabs/tab_strip_model_utils.h
index a4fa9dbd5bfadd123dd3e536ce6edc058b7e5192..b66ca395de825e3f944a8e51cb9c63d95a4d9088 100644
--- a/chrome/browser/ui/tabs/tab_strip_model_utils.h
+++ b/chrome/browser/ui/tabs/tab_strip_model_utils.h
@@ -5,14 +5,26 @@
#ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
#define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
+#include <set>
+#include <string>
+
class TabStripModel;
+namespace history {
+class TopSites;
+}
+
namespace chrome {
// Returns the index of the first tab that is blocked. This returns
// |model->count()| if no tab is blocked.
int IndexOfFirstBlockedTab(const TabStripModel* model);
+// Creates a set containing the canonical URLs of the currently open tabs.
+void GetOpenUrls(const TabStripModel& tabs,
+ const history::TopSites& top_sites,
+ std::set<std::string>* urls);
+
} // namespace chrome
#endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698