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

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

Issue 11038014: [Android] Upstream remaining changes to NTP UI code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed indentation nit Created 8 years, 2 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/recently_closed_tabs_handler.h
diff --git a/chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h b/chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h
index 65ee309fc6d273295ee1080e0fdc8562c6b01038..3808efc9f250945103d93fadd661e4ef19edfd73 100644
--- a/chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h
+++ b/chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h
@@ -29,6 +29,9 @@ class RecentlyClosedTabsHandler : public content::WebUIMessageHandler,
// Callback for the "getRecentlyClosedTabs" message.
void HandleGetRecentlyClosedTabs(const ListValue* args);
+ // Callback for the "clearRecentlyClosed" message.
+ void HandleClearRecentlyClosed(const ListValue* args);
+
// Observer callback for TabRestoreServiceObserver. Sends data on
// recently closed tabs to the javascript side of this page to
// display to the user.
@@ -45,6 +48,10 @@ class RecentlyClosedTabsHandler : public content::WebUIMessageHandler,
base::ListValue* entry_list_value);
private:
+ // Construct and initialize tab_restore_service_ if it's NULL.
+ // tab_restore_service_ may still be NULL, however, in incognito mode.
+ void EnsureTabRestoreService();
+
// TabRestoreService that we are observing.
TabRestoreService* tab_restore_service_;

Powered by Google App Engine
This is Rietveld 408576698