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

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

Issue 2904013: Don't set the URL on folders. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/bookmark_change_processor.cc
diff --git a/chrome/browser/sync/glue/bookmark_change_processor.cc b/chrome/browser/sync/glue/bookmark_change_processor.cc
index e625fb727e8b83cf7acacd793ee17bf70525995d..1151ec16d3b9709c0851c7969e3bc8d59e1f30e3 100644
--- a/chrome/browser/sync/glue/bookmark_change_processor.cc
+++ b/chrome/browser/sync/glue/bookmark_change_processor.cc
@@ -50,7 +50,8 @@ void BookmarkChangeProcessor::UpdateSyncNodeProperties(
// Set the properties of the item.
dst->SetIsFolder(src->is_folder());
dst->SetTitle(src->GetTitle());
- dst->SetURL(src->GetURL());
+ if (!src->is_folder())
+ dst->SetURL(src->GetURL());
SetSyncNodeFavicon(src, model, dst);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698