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

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

Issue 694813003: Changing SessionService to have a BaseSessionService, not being one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed non ChromeOS builds Created 6 years, 2 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/sessions/session_service_test_helper.cc
diff --git a/chrome/browser/sessions/session_service_test_helper.cc b/chrome/browser/sessions/session_service_test_helper.cc
index 9077d44d7c49595e37d19df89a0dbaf887c93e27..536adb76c8a0cbee89969cc06d1ee8e152b2b872 100644
--- a/chrome/browser/sessions/session_service_test_helper.cc
+++ b/chrome/browser/sessions/session_service_test_helper.cc
@@ -60,7 +60,8 @@ void SessionServiceTestHelper::ReadWindows(
SessionID::id_type* active_window_id) {
Time last_time;
ScopedVector<SessionCommand> read_commands;
- backend()->ReadLastSessionCommandsImpl(&read_commands);
+ service()->GetBaseSessionServiceForTest()->backend()->
+ ReadLastSessionCommandsImpl(&read_commands);
RestoreSessionFromCommands(read_commands, windows, active_window_id);
service()->RemoveUnusedRestoreWindows(windows);
}
@@ -103,10 +104,6 @@ void SessionServiceTestHelper::AssertSingleWindowWithSingleTab(
EXPECT_EQ(nav_count, windows[0]->tabs[0]->navigations.size());
}
-SessionBackend* SessionServiceTestHelper::backend() {
- return service_->backend();
-}
-
void SessionServiceTestHelper::SetService(SessionService* service) {
service_.reset(service);
// Execute IO tasks posted by the SessionService.
@@ -116,5 +113,6 @@ void SessionServiceTestHelper::SetService(SessionService* service) {
void SessionServiceTestHelper::RunTaskOnBackendThread(
const tracked_objects::Location& from_here,
const base::Closure& task) {
- service_->RunTaskOnBackendThread(from_here, task);
+ service_->GetBaseSessionServiceForTest()->RunTaskOnBackendThread(from_here,
+ task);
}

Powered by Google App Engine
This is Rietveld 408576698