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

Unified Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 10891044: RestoreTabHelper > SessionTabHelper, move more session stuff into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/automation/automation_provider_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_observers.cc
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
index 5cf8ce31b9124f77f8fa4e383507503afc1de4de..61ba92a9819349337f1b8c6ba23204d2edc11185 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -49,7 +49,7 @@
#include "chrome/browser/renderer_host/chrome_render_message_filter.h"
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
-#include "chrome/browser/sessions/restore_tab_helper.h"
+#include "chrome/browser/sessions/session_tab_helper.h"
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/sessions/tab_restore_service_factory.h"
#include "chrome/browser/tab_contents/thumbnail_generator.h"
@@ -828,7 +828,7 @@ void BrowserOpenedNotificationObserver::Observe(
content::Source<NavigationController>(source).ptr();
TabContents* tab =
TabContents::FromWebContents(controller->GetWebContents());
- int window_id = tab ? tab->restore_tab_helper()->window_id().id() : -1;
+ int window_id = tab ? tab->session_tab_helper()->window_id().id() : -1;
if (window_id == new_window_id_) {
if (use_json_interface_) {
AutomationJSONReply(automation_,
@@ -2208,7 +2208,7 @@ void AppLaunchObserver::Observe(int type,
content::Source<NavigationController>(source).ptr();
TabContents* tab =
TabContents::FromWebContents(controller->GetWebContents());
- int window_id = tab ? tab->restore_tab_helper()->window_id().id() : -1;
+ int window_id = tab ? tab->session_tab_helper()->window_id().id() : -1;
if (window_id == new_window_id_) {
if (automation_) {
AutomationJSONReply(automation_,
@@ -2864,7 +2864,7 @@ void BrowserOpenedWithNewProfileNotificationObserver::Observe(
content::Source<NavigationController>(source).ptr();
TabContents* tab =
TabContents::FromWebContents(controller->GetWebContents());
- int window_id = tab ? tab->restore_tab_helper()->window_id().id() : -1;
+ int window_id = tab ? tab->session_tab_helper()->window_id().id() : -1;
if (window_id == new_window_id_) {
if (automation_) {
AutomationJSONReply(automation_, reply_message_.release())
@@ -2974,7 +2974,7 @@ void BrowserOpenedWithExistingProfileNotificationObserver::Observe(
content::Source<NavigationController>(source).ptr();
TabContents* tab = TabContents::FromWebContents(
controller->GetWebContents());
- int window_id = tab ? tab->restore_tab_helper()->window_id().id() : -1;
+ int window_id = tab ? tab->session_tab_helper()->window_id().id() : -1;
if (window_id == new_window_id_ && --num_loads_ == 0) {
if (automation_) {
AutomationJSONReply(automation_, reply_message_.release())
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698