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

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

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhanced_bookmarks fix Created 5 years, 10 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 19 matching lines...) Expand all
30 #include "sync/internal_api/public/change_record.h" 30 #include "sync/internal_api/public/change_record.h"
31 #include "sync/internal_api/public/read_node.h" 31 #include "sync/internal_api/public/read_node.h"
32 #include "sync/internal_api/public/write_node.h" 32 #include "sync/internal_api/public/write_node.h"
33 #include "sync/internal_api/public/write_transaction.h" 33 #include "sync/internal_api/public/write_transaction.h"
34 #include "sync/syncable/entry.h" // TODO(tim): Investigating bug 121587. 34 #include "sync/syncable/entry.h" // TODO(tim): Investigating bug 121587.
35 #include "sync/syncable/syncable_write_transaction.h" 35 #include "sync/syncable/syncable_write_transaction.h"
36 #include "ui/gfx/favicon_size.h" 36 #include "ui/gfx/favicon_size.h"
37 #include "ui/gfx/image/image_util.h" 37 #include "ui/gfx/image/image_util.h"
38 38
39 using bookmarks::BookmarkModel; 39 using bookmarks::BookmarkModel;
40 using bookmarks::BookmarkNode;
40 using content::BrowserThread; 41 using content::BrowserThread;
41 using syncer::ChangeRecord; 42 using syncer::ChangeRecord;
42 using syncer::ChangeRecordList; 43 using syncer::ChangeRecordList;
43 44
44 namespace browser_sync { 45 namespace browser_sync {
45 46
46 static const char kMobileBookmarksTag[] = "synced_bookmarks"; 47 static const char kMobileBookmarksTag[] = "synced_bookmarks";
47 48
48 BookmarkChangeProcessor::BookmarkChangeProcessor( 49 BookmarkChangeProcessor::BookmarkChangeProcessor(
49 Profile* profile, 50 Profile* profile,
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 updated_specifics.set_icon_url(bookmark_node->icon_url().spec()); 906 updated_specifics.set_icon_url(bookmark_node->icon_url().spec());
906 sync_node->SetBookmarkSpecifics(updated_specifics); 907 sync_node->SetBookmarkSpecifics(updated_specifics);
907 } 908 }
908 } 909 }
909 910
910 bool BookmarkChangeProcessor::CanSyncNode(const BookmarkNode* node) { 911 bool BookmarkChangeProcessor::CanSyncNode(const BookmarkNode* node) {
911 return bookmark_model_->client()->CanSyncNode(node); 912 return bookmark_model_->client()->CanSyncNode(node);
912 } 913 }
913 914
914 } // namespace browser_sync 915 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698