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

Unified Diff: chrome/browser/dom_ui/new_tab_ui.h

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/new_tab_ui.h
diff --git a/chrome/browser/dom_ui/new_tab_ui.h b/chrome/browser/dom_ui/new_tab_ui.h
index 35e2a87b1cb3c8b75dda3b8af6a8384afb5df074..abcd47a616614c485a17416a6c195036165ecadb 100644
--- a/chrome/browser/dom_ui/new_tab_ui.h
+++ b/chrome/browser/dom_ui/new_tab_ui.h
@@ -11,6 +11,7 @@
#include "base/gtest_prod_util.h"
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
+#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
@@ -48,6 +49,12 @@ class NewTabUI : public DOMUI,
const string16& title,
const GURL& gurl);
+ // Converts a list of TabRestoreService entries to the JSON format required
+ // by the NTP and adds them to the given list value.
+ static void AddRecentlyClosedEntries(
+ const TabRestoreService::Entries& entries,
+ ListValue* entry_list_value);
+
// The current preference version.
static int current_pref_version() { return current_pref_version_; }

Powered by Google App Engine
This is Rietveld 408576698