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

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

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 12 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 | « chrome/browser/sessions/restore_tab_helper.h ('k') | 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
===================================================================
--- chrome/browser/sessions/restore_tab_helper.cc (revision 116331)
+++ chrome/browser/sessions/restore_tab_helper.cc (working copy)
@@ -7,13 +7,14 @@
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/extensions/extension_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
+#include "content/public/browser/web_contents.h"
-RestoreTabHelper::RestoreTabHelper(TabContents* contents)
- : content::WebContentsObserver(contents),
- contents_(contents) {
+using content::WebContents;
+
+RestoreTabHelper::RestoreTabHelper(WebContents* contents)
+ : content::WebContentsObserver(contents) {
}
RestoreTabHelper::~RestoreTabHelper() {
@@ -24,7 +25,7 @@
// TODO(mpcomplete): Maybe this notification should send out a TabContents.
TabContentsWrapper* tab =
- TabContentsWrapper::GetCurrentWrapperForContents(contents_);
+ TabContentsWrapper::GetCurrentWrapperForContents(web_contents());
if (tab) {
content::NotificationService::current()->Notify(
content::NOTIFICATION_TAB_PARENTED,
@@ -34,9 +35,9 @@
// Extension code in the renderer holds the ID of the window that hosts it.
// Notify it that the window ID changed.
- contents_->GetRenderViewHost()->Send(
+ web_contents()->GetRenderViewHost()->Send(
new ExtensionMsg_UpdateBrowserWindowId(
- contents_->GetRenderViewHost()->routing_id(), id.id()));
+ web_contents()->GetRenderViewHost()->routing_id(), id.id()));
}
void RestoreTabHelper::RenderViewCreated(RenderViewHost* render_view_host) {
« no previous file with comments | « chrome/browser/sessions/restore_tab_helper.h ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698