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

Unified Diff: chrome/test/live_sync/sessions_helper.cc

Issue 7792102: Revert 99391 (broke CrOS unit_tests) - Set user-visible machine names and devices types for synce... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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/test/live_sync/sessions_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/sessions_helper.cc
===================================================================
--- chrome/test/live_sync/sessions_helper.cc (revision 99393)
+++ chrome/test/live_sync/sessions_helper.cc (working copy)
@@ -23,14 +23,14 @@
namespace sessions_helper {
-bool GetLocalSession(int index, const browser_sync::SyncedSession** session) {
+bool GetLocalSession(int index, const SyncedSession** session) {
return test()->GetProfile(index)->GetProfileSyncService()->
GetSessionModelAssociator()->GetLocalSession(session);
}
bool ModelAssociatorHasTabWithUrl(int index, const GURL& url) {
ui_test_utils::RunAllPendingInMessageLoop();
- const browser_sync::SyncedSession* local_session;
+ const SyncedSession* local_session;
if (!GetLocalSession(index, &local_session)) {
return false;
}
@@ -119,7 +119,7 @@
bool GetLocalWindows(int index, SessionWindowVector& local_windows) {
// The local session provided by GetLocalSession is owned, and has lifetime
// controlled, by the model associator, so we must make our own copy.
- const browser_sync::SyncedSession* local_session;
+ const SyncedSession* local_session;
if (!GetLocalSession(index, &local_session)) {
return false;
}
@@ -161,7 +161,7 @@
}
int GetNumWindows(int index) {
- const browser_sync::SyncedSession* local_session;
+ const SyncedSession* local_session;
if (!GetLocalSession(index, &local_session)) {
return 0;
}
@@ -204,8 +204,7 @@
CompareSessionWindows);
}
-bool CompareSyncedSessions(const browser_sync::SyncedSession* lhs,
- const browser_sync::SyncedSession* rhs) {
+bool CompareSyncedSessions(const SyncedSession* lhs, const SyncedSession* rhs) {
if (!lhs ||
!rhs ||
lhs->windows.size() < 1 ||
« no previous file with comments | « chrome/test/live_sync/sessions_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698