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

Unified Diff: chrome/browser/automation/testing_automation_provider.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 | « chrome/browser/automation/automation_util.cc ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index ffb1274d2025b6f313e645eaa55af04b8fa906c5..2c29e4886fa7f325e24f209893c9149ac424addf 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -83,8 +83,8 @@
#include "chrome/browser/search_engines/template_url.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_service_factory.h"
+#include "chrome/browser/sessions/session_tab_helper.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/themes/theme_service.h"
@@ -5747,7 +5747,7 @@ void TestingAutomationProvider::GetIndicesFromTab(
if (has_handle) {
TabContents* tab = TabContents::FromWebContents(
tab_tracker_->GetResource(id_or_handle)->GetWebContents());
- id = tab->restore_tab_helper()->session_id().id();
+ id = tab->session_tab_helper()->session_id().id();
}
BrowserList::const_iterator iter = BrowserList::begin();
int browser_index = 0;
@@ -5755,7 +5755,7 @@ void TestingAutomationProvider::GetIndicesFromTab(
Browser* browser = *iter;
for (int tab_index = 0; tab_index < browser->tab_count(); ++tab_index) {
TabContents* tab = chrome::GetTabContentsAt(browser, tab_index);
- if (tab->restore_tab_helper()->session_id().id() == id) {
+ if (tab->session_tab_helper()->session_id().id() == id) {
DictionaryValue dict;
dict.SetInteger("windex", browser_index);
dict.SetInteger("tab_index", tab_index);
@@ -6398,7 +6398,7 @@ void TestingAutomationProvider::GetTabIds(
for (; iter != BrowserList::end(); ++iter) {
Browser* browser = *iter;
for (int i = 0; i < browser->tab_count(); ++i) {
- int id = chrome::GetTabContentsAt(browser, i)->restore_tab_helper()->
+ int id = chrome::GetTabContentsAt(browser, i)->session_tab_helper()->
session_id().id();
id_list->Append(Value::CreateIntegerValue(id));
}
@@ -6471,7 +6471,7 @@ void TestingAutomationProvider::IsTabIdValid(
Browser* browser = *iter;
for (int i = 0; i < browser->tab_count(); ++i) {
TabContents* tab = chrome::GetTabContentsAt(browser, i);
- if (tab->restore_tab_helper()->session_id().id() == id) {
+ if (tab->session_tab_helper()->session_id().id() == id) {
is_valid = true;
break;
}
« no previous file with comments | « chrome/browser/automation/automation_util.cc ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698