| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |