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

Unified Diff: chrome/browser/dom_ui/most_visited_handler.cc

Issue 5088001: Add pyauto hook for getting and manipulating the data underneath the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/functional
Patch Set: ... Created 10 years, 1 month 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/dom_ui/most_visited_handler.cc
diff --git a/chrome/browser/dom_ui/most_visited_handler.cc b/chrome/browser/dom_ui/most_visited_handler.cc
index 5b4997354428e238ebf700275c3709fb802048da..6ec3113b009e4859df523e6ae0ee02c80c8cd096 100644
--- a/chrome/browser/dom_ui/most_visited_handler.cc
+++ b/chrome/browser/dom_ui/most_visited_handler.cc
@@ -547,3 +547,13 @@ void MostVisitedHandler::RegisterUserPrefs(PrefService* prefs) {
prefs->RegisterDictionaryPref(prefs::kNTPMostVisitedURLsBlacklist);
prefs->RegisterDictionaryPref(prefs::kNTPMostVisitedPinnedURLs);
}
+
+// static
+std::vector<GURL> MostVisitedHandler::GetPrePopulatedUrls() {
+ const std::vector<MostVisitedPage> pages =
+ MostVisitedHandler::GetPrePopulatedPages();
+ std::vector<GURL> page_urls;
+ for (size_t i = 0; i < pages.size(); ++i)
+ page_urls.push_back(pages[i].url);
+ return page_urls;
+}

Powered by Google App Engine
This is Rietveld 408576698