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

Side by Side Diff: components/sync_driver/fake_sync_service.h

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback Created 4 years, 8 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
« no previous file with comments | « components/sync_driver/fake_sync_client.cc ('k') | components/sync_driver/fake_sync_service.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/sync_driver/sync_service.h" 10 #include "components/sync_driver/sync_service.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 tracked_objects::Location unrecoverable_error_location() const override; 79 tracked_objects::Location unrecoverable_error_location() const override;
80 void AddProtocolEventObserver( 80 void AddProtocolEventObserver(
81 browser_sync::ProtocolEventObserver* observer) override; 81 browser_sync::ProtocolEventObserver* observer) override;
82 void RemoveProtocolEventObserver( 82 void RemoveProtocolEventObserver(
83 browser_sync::ProtocolEventObserver* observer) override; 83 browser_sync::ProtocolEventObserver* observer) override;
84 void AddTypeDebugInfoObserver( 84 void AddTypeDebugInfoObserver(
85 syncer::TypeDebugInfoObserver* observer) override; 85 syncer::TypeDebugInfoObserver* observer) override;
86 void RemoveTypeDebugInfoObserver( 86 void RemoveTypeDebugInfoObserver(
87 syncer::TypeDebugInfoObserver* observer) override; 87 syncer::TypeDebugInfoObserver* observer) override;
88 base::WeakPtr<syncer::JsController> GetJsController() override; 88 base::WeakPtr<syncer::JsController> GetJsController() override;
89 void GetAllNodes(const base::Callback<void(scoped_ptr<base::ListValue>)>& 89 void GetAllNodes(const base::Callback<void(std::unique_ptr<base::ListValue>)>&
90 callback) override; 90 callback) override;
91 91
92 // DataTypeEncryptionHandler: 92 // DataTypeEncryptionHandler:
93 bool IsPassphraseRequired() const override; 93 bool IsPassphraseRequired() const override;
94 syncer::ModelTypeSet GetEncryptedDataTypes() const override; 94 syncer::ModelTypeSet GetEncryptedDataTypes() const override;
95 95
96 GoogleServiceAuthError error_; 96 GoogleServiceAuthError error_;
97 GURL sync_service_url_; 97 GURL sync_service_url_;
98 std::string unrecoverable_error_message_; 98 std::string unrecoverable_error_message_;
99 scoped_ptr<syncer::UserShare> user_share_; 99 std::unique_ptr<syncer::UserShare> user_share_;
100 }; 100 };
101 101
102 } // namespace sync_driver 102 } // namespace sync_driver
103 103
104 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 104 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync_driver/fake_sync_client.cc ('k') | components/sync_driver/fake_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698