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

Side by Side Diff: components/sync_driver/about_sync_util.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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ 6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "components/version_info/version_info.h" 10 #include "components/version_info/version_info.h"
10 11
11 class SigninManagerBase; 12 class SigninManagerBase;
12 13
13 namespace base { 14 namespace base {
14 class DictionaryValue; 15 class DictionaryValue;
15 } 16 }
16 17
17 namespace sync_driver { 18 namespace sync_driver {
18 19
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 extern const char kOnCountersUpdated[]; 59 extern const char kOnCountersUpdated[];
59 extern const char kOnProtocolEvent[]; 60 extern const char kOnProtocolEvent[];
60 extern const char kOnReceivedListOfTypes[]; 61 extern const char kOnReceivedListOfTypes[];
61 extern const char kStatus[]; 62 extern const char kStatus[];
62 extern const char kTypes[]; 63 extern const char kTypes[];
63 extern const char kUpdate[]; 64 extern const char kUpdate[];
64 65
65 // This function returns a DictionaryValue which contains all the information 66 // This function returns a DictionaryValue which contains all the information
66 // required to populate the 'About' tab of about:sync. 67 // required to populate the 'About' tab of about:sync.
67 // Note that |service| may be NULL. 68 // Note that |service| may be NULL.
68 scoped_ptr<base::DictionaryValue> ConstructAboutInformation( 69 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
69 sync_driver::SyncService* service, 70 sync_driver::SyncService* service,
70 SigninManagerBase* signin, 71 SigninManagerBase* signin,
71 version_info::Channel channel); 72 version_info::Channel channel);
72 73
73 } // namespace sync_ui_util 74 } // namespace sync_ui_util
74 75
75 } // namespace sync_driver 76 } // namespace sync_driver
76 77
77 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ 78 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
OLDNEW
« no previous file with comments | « components/browser_sync/browser/profile_sync_components_factory_impl.cc ('k') | components/sync_driver/about_sync_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698