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

Side by Side Diff: chrome/browser/enhanced_bookmarks/chrome_bookmark_server_cluster_service.cc

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac fixes 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/enhanced_bookmarks/chrome_bookmark_server_cluster_servi ce.h" 5 #include "chrome/browser/enhanced_bookmarks/chrome_bookmark_server_cluster_servi ce.h"
6 6
7 #include "chrome/browser/sync/profile_sync_service.h" 7 #include "chrome/browser/sync/profile_sync_service.h"
8 #include "components/enhanced_bookmarks/enhanced_bookmark_model.h" 8 #include "components/enhanced_bookmarks/enhanced_bookmark_model.h"
9 9
10 using bookmarks::BookmarkNode;
11
10 namespace enhanced_bookmarks { 12 namespace enhanced_bookmarks {
11 13
12 ChromeBookmarkServerClusterService::ChromeBookmarkServerClusterService( 14 ChromeBookmarkServerClusterService::ChromeBookmarkServerClusterService(
13 const std::string& application_language_code, 15 const std::string& application_language_code,
14 scoped_refptr<net::URLRequestContextGetter> request_context_getter, 16 scoped_refptr<net::URLRequestContextGetter> request_context_getter,
15 ProfileOAuth2TokenService* token_service, 17 ProfileOAuth2TokenService* token_service,
16 SigninManagerBase* signin_manager, 18 SigninManagerBase* signin_manager,
17 EnhancedBookmarkModel* enhanced_bookmark_model, 19 EnhancedBookmarkModel* enhanced_bookmark_model,
18 PrefService* pref_service, 20 PrefService* pref_service,
19 ProfileSyncService* sync_service) 21 ProfileSyncService* sync_service)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // 3. SyncCycleCompleted (bookmark version:1) 97 // 3. SyncCycleCompleted (bookmark version:1)
96 // 98 //
97 // In this case, the bookmarks modified locally won't be sent to the server 99 // In this case, the bookmarks modified locally won't be sent to the server
98 // until the next SyncCycleCompleted. Since we can't accurately determine 100 // until the next SyncCycleCompleted. Since we can't accurately determine
99 // if a bookmark change has been sent on a SyncCycleCompleted, we're always 101 // if a bookmark change has been sent on a SyncCycleCompleted, we're always
100 // assuming that we need to wait for 2 sync cycles. 102 // assuming that we need to wait for 2 sync cycles.
101 refreshes_needed_ = 2; 103 refreshes_needed_ = 2;
102 } 104 }
103 105
104 } // namespace enhanced_bookmarks 106 } // namespace enhanced_bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698