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

Unified Diff: chrome/browser/sync/sessions/sessions_util.cc

Issue 1062013003: [Sync] Sync the chrome://history page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 5 years, 8 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/sync/test/integration/single_client_sessions_sync_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sessions/sessions_util.cc
diff --git a/chrome/browser/sync/sessions/sessions_util.cc b/chrome/browser/sync/sessions/sessions_util.cc
index e5a9384d9640a2b9c2a32ca882e8fe1684ff2e61..b304d17479bb9cf81ce5eb416fc48875a6a8fe9e 100644
--- a/chrome/browser/sync/sessions/sessions_util.cc
+++ b/chrome/browser/sync/sessions/sessions_util.cc
@@ -39,6 +39,10 @@ bool ShouldSyncTab(const SyncedTabDelegate& tab) {
!virtual_url.SchemeIs(chrome::kChromeNativeScheme) &&
!virtual_url.SchemeIsFile()) {
found_valid_url = true;
+ } else if (virtual_url == GURL(chrome::kChromeUIHistoryURL)) {
+ // The history page is treated specially as we want it to trigger syncable
stanisc 2015/04/14 22:42:40 Wouldn't there be a race condition between the pag
Nicolas Zea 2015/04/16 17:30:30 Yes, but that's fine. Once we do model association
+ // events for UI purposes.
+ found_valid_url = true;
stanisc 2015/04/14 22:42:40 Perhaps break the loop (here and above) once the v
Nicolas Zea 2015/04/16 17:30:29 We actually deliberately keep looping to ensure th
}
}
return found_valid_url;
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698