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

Side by Side Diff: chrome/browser/sync/engine/syncapi.cc

Issue 3581014: Rename ChromeThread to BrowserThread Part3: (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 2 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/engine/syncapi.h" 5 #include "chrome/browser/sync/engine/syncapi.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <bitset> 9 #include <bitset>
10 #include <iomanip> 10 #include <iomanip>
11 #include <list> 11 #include <list>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/base64.h" 16 #include "base/base64.h"
17 #include "base/lock.h" 17 #include "base/lock.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/message_loop.h" 19 #include "base/message_loop.h"
20 #include "base/platform_thread.h" 20 #include "base/platform_thread.h"
21 #include "base/scoped_ptr.h" 21 #include "base/scoped_ptr.h"
22 #include "base/sha1.h" 22 #include "base/sha1.h"
23 #include "base/string_util.h" 23 #include "base/string_util.h"
24 #include "base/task.h" 24 #include "base/task.h"
25 #include "base/utf_string_conversions.h" 25 #include "base/utf_string_conversions.h"
26 #include "chrome/browser/browser_process.h" 26 #include "chrome/browser/browser_process.h"
27 #include "chrome/browser/chrome_thread.h" 27 #include "chrome/browser/browser_thread.h"
28 #include "chrome/browser/sync/sync_constants.h" 28 #include "chrome/browser/sync/sync_constants.h"
29 #include "chrome/browser/sync/engine/all_status.h" 29 #include "chrome/browser/sync/engine/all_status.h"
30 #include "chrome/browser/sync/engine/change_reorder_buffer.h" 30 #include "chrome/browser/sync/engine/change_reorder_buffer.h"
31 #include "chrome/browser/sync/engine/model_safe_worker.h" 31 #include "chrome/browser/sync/engine/model_safe_worker.h"
32 #include "chrome/browser/sync/engine/net/server_connection_manager.h" 32 #include "chrome/browser/sync/engine/net/server_connection_manager.h"
33 #include "chrome/browser/sync/engine/net/syncapi_server_connection_manager.h" 33 #include "chrome/browser/sync/engine/net/syncapi_server_connection_manager.h"
34 #include "chrome/browser/sync/engine/syncer.h" 34 #include "chrome/browser/sync/engine/syncer.h"
35 #include "chrome/browser/sync/engine/syncer_thread.h" 35 #include "chrome/browser/sync/engine/syncer_thread.h"
36 #include "chrome/browser/sync/notifier/server_notifier_thread.h" 36 #include "chrome/browser/sync/notifier/server_notifier_thread.h"
37 #include "chrome/browser/sync/protocol/app_specifics.pb.h" 37 #include "chrome/browser/sync/protocol/app_specifics.pb.h"
(...skipping 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 DCHECK(data_->initialized()) << "GetUserShare requires initialization!"; 2050 DCHECK(data_->initialized()) << "GetUserShare requires initialization!";
2051 return data_->GetUserShare(); 2051 return data_->GetUserShare();
2052 } 2052 }
2053 2053
2054 bool SyncManager::HasUnsyncedItems() const { 2054 bool SyncManager::HasUnsyncedItems() const {
2055 sync_api::ReadTransaction trans(GetUserShare()); 2055 sync_api::ReadTransaction trans(GetUserShare());
2056 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0); 2056 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0);
2057 } 2057 }
2058 2058
2059 } // namespace sync_api 2059 } // namespace sync_api
OLDNEW
« no previous file with comments | « chrome/browser/profile_import_process_host.h ('k') | chrome/browser/sync/sessions/sync_session_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698