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

Unified Diff: chrome/browser/sessions/restore_tab_helper.cc

Issue 10536074: TabContentsWrapper -> TabContents, part 26. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/restore_tab_helper.cc
diff --git a/chrome/browser/sessions/restore_tab_helper.cc b/chrome/browser/sessions/restore_tab_helper.cc
index f639c913a576112130273f7eb3aa2f478383eef7..c33cc3cec6afb24d654a8047a3f594cc642c7a56 100644
--- a/chrome/browser/sessions/restore_tab_helper.cc
+++ b/chrome/browser/sessions/restore_tab_helper.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/sessions/restore_tab_helper.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension_messages.h"
#include "content/public/browser/notification_service.h"
@@ -24,12 +24,11 @@ void RestoreTabHelper::SetWindowID(const SessionID& id) {
window_id_ = id;
// TODO(mpcomplete): Maybe this notification should send out a WebContents.
- TabContentsWrapper* tab =
- TabContentsWrapper::GetCurrentWrapperForContents(web_contents());
+ TabContents* tab = TabContents::FromWebContents(web_contents());
if (tab) {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TAB_PARENTED,
- content::Source<TabContentsWrapper>(tab),
+ content::Source<TabContents>(tab),
content::NotificationService::NoDetails());
}
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698