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

Side by Side Diff: chrome/browser/chromeos/profiles/profile_list_chromeos.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PROFILES_PROFILE_LIST_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_
7 7
8 #include "chrome/browser/profiles/profile_list.h"
9
10 #include <stddef.h> 8 #include <stddef.h>
11 9
10 #include <memory>
12 #include <vector> 11 #include <vector>
13 12
14 #include "base/macros.h" 13 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h" 14 #include "chrome/browser/profiles/profile_list.h"
16 15
17 class ProfileAttributesStorage; 16 class ProfileAttributesStorage;
18 17
19 namespace chromeos { 18 namespace chromeos {
20 19
21 // This model represents profiles corresponding to logged-in ChromeOS users. 20 // This model represents profiles corresponding to logged-in ChromeOS users.
22 class ProfileListChromeOS : public ProfileList { 21 class ProfileListChromeOS : public ProfileList {
23 public: 22 public:
24 explicit ProfileListChromeOS(ProfileAttributesStorage* profile_storage); 23 explicit ProfileListChromeOS(ProfileAttributesStorage* profile_storage);
25 ~ProfileListChromeOS() override; 24 ~ProfileListChromeOS() override;
26 25
27 private: 26 private:
28 // ProfileList overrides: 27 // ProfileList overrides:
29 size_t GetNumberOfItems() const override; 28 size_t GetNumberOfItems() const override;
30 const AvatarMenu::Item& GetItemAt(size_t index) const override; 29 const AvatarMenu::Item& GetItemAt(size_t index) const override;
31 void RebuildMenu() override; 30 void RebuildMenu() override;
32 size_t MenuIndexFromProfilePath(const base::FilePath& path) const override; 31 size_t MenuIndexFromProfilePath(const base::FilePath& path) const override;
33 void ActiveProfilePathChanged( 32 void ActiveProfilePathChanged(
34 const base::FilePath& active_profile_path) override; 33 const base::FilePath& active_profile_path) override;
35 34
36 // The storage that provides the profile attributes. Not owned. 35 // The storage that provides the profile attributes. Not owned.
37 ProfileAttributesStorage* profile_storage_; 36 ProfileAttributesStorage* profile_storage_;
38 37
39 // The path of the currently active profile. 38 // The path of the currently active profile.
40 base::FilePath active_profile_path_; 39 base::FilePath active_profile_path_;
41 40
42 // List of built "menu items." 41 // List of built "menu items."
43 std::vector<scoped_ptr<AvatarMenu::Item>> items_; 42 std::vector<std::unique_ptr<AvatarMenu::Item>> items_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(ProfileListChromeOS); 44 DISALLOW_COPY_AND_ASSIGN(ProfileListChromeOS);
46 }; 45 };
47 46
48 } // namespace chromeos 47 } // namespace chromeos
49 48
50 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.h ('k') | chrome/browser/chromeos/profiles/profile_list_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698