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

Unified Diff: chrome/browser/sync/glue/typed_url_model_associator.cc

Issue 10802060: Ignore file URLs from being synced (Closed) Base URL: http://src.chromium.org/svn/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
Index: chrome/browser/sync/glue/typed_url_model_associator.cc
===================================================================
--- chrome/browser/sync/glue/typed_url_model_associator.cc (revision 149878)
+++ chrome/browser/sync/glue/typed_url_model_associator.cc (working copy)
@@ -119,6 +119,10 @@
if (url.url().spec().empty())
return true;
+ // Ignore local file URLs.
+ if (GURL(url.url()).SchemeIsFile())
+ return true;
+
// We ignore URLs that were imported, but have never been visited by
// chromium.
static const int kLastImportedSource = history::SOURCE_EXTENSION;
« no previous file with comments | « chrome/browser/sync/glue/typed_url_change_processor.cc ('k') | chrome/browser/sync/profile_sync_service_typed_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698