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

Unified Diff: chrome/browser/ui/webui/new_tab_ui.cc

Issue 6660028: Decouple TabRestoreService from Browser (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: New version using a seperate class for the delegate Created 9 years, 9 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/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/new_tab_ui.cc b/chrome/browser/ui/webui/new_tab_ui.cc
index 25ca83da2d3b4a6ff202708900098c0fc4d2e09c..24806cacd53b6376c8253a6f3a93961527ee2f85 100644
--- a/chrome/browser/ui/webui/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/new_tab_ui.cc
@@ -121,7 +121,8 @@ void RecentlyClosedTabsHandler::HandleReopenTab(const ListValue* args) {
int session_to_restore;
if (ExtractIntegerValue(args, &session_to_restore))
- tab_restore_service_->RestoreEntryById(browser, session_to_restore, true);
+ tab_restore_service_->RestoreEntryById(
+ browser->tab_restore_service_delegate(), session_to_restore, true);
// The current tab has been nuked at this point; don't touch any member
// variables.
}

Powered by Google App Engine
This is Rietveld 408576698