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

Side by Side Diff: chrome/browser/chromeos/arc/arc_settings_service.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/arc/arc_bridge_service.h" 11 #include "components/arc/arc_bridge_service.h"
11 #include "components/arc/arc_service.h" 12 #include "components/arc/arc_service.h"
12 13
13 namespace arc { 14 namespace arc {
14 15
15 class ArcSettingsServiceImpl; 16 class ArcSettingsServiceImpl;
16 17
17 class ArcSettingsService : public ArcService, 18 class ArcSettingsService : public ArcService,
18 public ArcBridgeService::Observer { 19 public ArcBridgeService::Observer {
19 public: 20 public:
20 explicit ArcSettingsService(ArcBridgeService* bridge_service); 21 explicit ArcSettingsService(ArcBridgeService* bridge_service);
21 ~ArcSettingsService() override; 22 ~ArcSettingsService() override;
22 23
23 // ArcBridgeService::Observer 24 // ArcBridgeService::Observer
24 void OnIntentHelperInstanceReady() override; 25 void OnIntentHelperInstanceReady() override;
25 void OnIntentHelperInstanceClosed() override; 26 void OnIntentHelperInstanceClosed() override;
26 27
27 private: 28 private:
28 scoped_ptr<ArcSettingsServiceImpl> impl_; 29 std::unique_ptr<ArcSettingsServiceImpl> impl_;
29 30
30 DISALLOW_COPY_AND_ASSIGN(ArcSettingsService); 31 DISALLOW_COPY_AND_ASSIGN(ArcSettingsService);
31 }; 32 };
32 33
33 } // namespace arc 34 } // namespace arc
34 35
35 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_ 36 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_service_launcher.cc ('k') | chrome/browser/chromeos/arc/arc_settings_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698