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

Side by Side Diff: chrome/browser/sync/glue/bookmark_change_processor.cc

Issue 1203713002: Limit access to ChromeBookmarkClient to bookmarks code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_bookmark_client
Patch Set: Rebase Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/glue/bookmark_change_processor.h" 5 #include "chrome/browser/sync/glue/bookmark_change_processor.h"
6 6
7 #include <map> 7 #include <map>
8 #include <stack> 8 #include <stack>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 sync_pb::BookmarkSpecifics updated_specifics( 957 sync_pb::BookmarkSpecifics updated_specifics(
958 sync_node->GetBookmarkSpecifics()); 958 sync_node->GetBookmarkSpecifics());
959 updated_specifics.set_favicon(favicon_bytes->front(), 959 updated_specifics.set_favicon(favicon_bytes->front(),
960 favicon_bytes->size()); 960 favicon_bytes->size());
961 updated_specifics.set_icon_url(bookmark_node->icon_url().spec()); 961 updated_specifics.set_icon_url(bookmark_node->icon_url().spec());
962 sync_node->SetBookmarkSpecifics(updated_specifics); 962 sync_node->SetBookmarkSpecifics(updated_specifics);
963 } 963 }
964 } 964 }
965 965
966 bool BookmarkChangeProcessor::CanSyncNode(const BookmarkNode* node) { 966 bool BookmarkChangeProcessor::CanSyncNode(const BookmarkNode* node) {
967 return bookmark_model_->client()->CanSyncNode(node); 967 return bookmark_model_->CanSyncNode(node);
968 } 968 }
969 969
970 } // namespace browser_sync 970 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698