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

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

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/sync/engine/syncer_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <bitset> 7 #include <bitset>
8 #include <iomanip> 8 #include <iomanip>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 #include "chrome/browser/sync/protocol/session_specifics.pb.h" 39 #include "chrome/browser/sync/protocol/session_specifics.pb.h"
40 #include "chrome/browser/sync/protocol/service_constants.h" 40 #include "chrome/browser/sync/protocol/service_constants.h"
41 #include "chrome/browser/sync/protocol/sync.pb.h" 41 #include "chrome/browser/sync/protocol/sync.pb.h"
42 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" 42 #include "chrome/browser/sync/protocol/theme_specifics.pb.h"
43 #include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" 43 #include "chrome/browser/sync/protocol/typed_url_specifics.pb.h"
44 #include "chrome/browser/sync/sessions/sync_session_context.h" 44 #include "chrome/browser/sync/sessions/sync_session_context.h"
45 #include "chrome/browser/sync/syncable/autofill_migration.h" 45 #include "chrome/browser/sync/syncable/autofill_migration.h"
46 #include "chrome/browser/sync/syncable/directory_manager.h" 46 #include "chrome/browser/sync/syncable/directory_manager.h"
47 #include "chrome/browser/sync/syncable/syncable.h" 47 #include "chrome/browser/sync/syncable/syncable.h"
48 #include "chrome/browser/sync/util/crypto_helpers.h" 48 #include "chrome/browser/sync/util/crypto_helpers.h"
49 #include "chrome/common/chrome_switches.h"
50 #include "chrome/common/deprecated/event_sys.h" 49 #include "chrome/common/deprecated/event_sys.h"
51 #include "chrome/common/net/gaia/gaia_authenticator.h" 50 #include "chrome/common/net/gaia/gaia_authenticator.h"
52 #include "jingle/notifier/listener/mediator_thread_impl.h" 51 #include "jingle/notifier/listener/mediator_thread_impl.h"
53 #include "jingle/notifier/listener/notification_constants.h" 52 #include "jingle/notifier/listener/notification_constants.h"
54 #include "jingle/notifier/listener/talk_mediator.h" 53 #include "jingle/notifier/listener/talk_mediator.h"
55 #include "jingle/notifier/listener/talk_mediator_impl.h" 54 #include "jingle/notifier/listener/talk_mediator_impl.h"
56 #include "net/base/network_change_notifier.h" 55 #include "net/base/network_change_notifier.h"
57 56
58 using browser_sync::AllStatus; 57 using browser_sync::AllStatus;
59 using browser_sync::Cryptographer; 58 using browser_sync::Cryptographer;
(...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 DCHECK(data_->initialized()) << "GetUserShare requires initialization!"; 2350 DCHECK(data_->initialized()) << "GetUserShare requires initialization!";
2352 return data_->GetUserShare(); 2351 return data_->GetUserShare();
2353 } 2352 }
2354 2353
2355 bool SyncManager::HasUnsyncedItems() const { 2354 bool SyncManager::HasUnsyncedItems() const {
2356 sync_api::ReadTransaction trans(GetUserShare()); 2355 sync_api::ReadTransaction trans(GetUserShare());
2357 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0); 2356 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0);
2358 } 2357 }
2359 2358
2360 } // namespace sync_api 2359 } // namespace sync_api
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/sync/engine/syncer_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698