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

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2461463002: [Sync] Replacing NULL with nullptr/null throughout sync code. (Closed)
Patch Set: Reverted PROFILE_nullptr mistake. Created 4 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 // TODO(akalin): These two functions are used only by 462 // TODO(akalin): These two functions are used only by
463 // ProfileSyncServiceHarness. Figure out a different way to expose 463 // ProfileSyncServiceHarness. Figure out a different way to expose
464 // this info to that class, and remove these functions. 464 // this info to that class, and remove these functions.
465 465
466 // Returns whether or not the underlying sync engine has made any 466 // Returns whether or not the underlying sync engine has made any
467 // local changes to items that have not yet been synced with the 467 // local changes to items that have not yet been synced with the
468 // server. 468 // server.
469 bool HasUnsyncedItems() const; 469 bool HasUnsyncedItems() const;
470 470
471 // Used by ProfileSyncServiceHarness. May return NULL. 471 // Used by ProfileSyncServiceHarness. May return null.
472 syncer::BackendMigrator* GetBackendMigratorForTest(); 472 syncer::BackendMigrator* GetBackendMigratorForTest();
473 473
474 // Used by tests to inspect interaction with OAuth2TokenService. 474 // Used by tests to inspect interaction with OAuth2TokenService.
475 bool IsRetryingAccessTokenFetchForTest() const; 475 bool IsRetryingAccessTokenFetchForTest() const;
476 476
477 // Used by tests to inspect the OAuth2 access tokens used by PSS. 477 // Used by tests to inspect the OAuth2 access tokens used by PSS.
478 std::string GetAccessTokenForTest() const; 478 std::string GetAccessTokenForTest() const;
479 479
480 // TODO(sync): This is only used in tests. Can we remove it? 480 // TODO(sync): This is only used in tests. Can we remove it?
481 void GetModelSafeRoutingInfo(syncer::ModelSafeRoutingInfo* out) const; 481 void GetModelSafeRoutingInfo(syncer::ModelSafeRoutingInfo* out) const;
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 1008 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
1009 1009
1010 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1010 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1011 }; 1011 };
1012 1012
1013 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); 1013 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error);
1014 1014
1015 } // namespace browser_sync 1015 } // namespace browser_sync
1016 1016
1017 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1017 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/typed_urls_helper.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698