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

Side by Side Diff: components/user_manager/user_info_impl.h

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_USER_MANAGER_USER_INFO_IMPL_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
6 #define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ 6 #define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "components/user_manager/user_info.h" 11 #include "components/user_manager/user_info.h"
12 #include "components/user_manager/user_manager_export.h" 12 #include "components/user_manager/user_manager_export.h"
13 #include "ui/gfx/image/image_skia.h" 13 #include "ui/gfx/image/image_skia.h"
14 14
15 namespace user_manager { 15 namespace user_manager {
16 16
17 // Stub implementation of UserInfo interface. Used in tests. 17 // Stub implementation of UserInfo interface. Used in tests.
18 class USER_MANAGER_EXPORT UserInfoImpl : public UserInfo { 18 class USER_MANAGER_EXPORT UserInfoImpl : public UserInfo {
19 public: 19 public:
20 UserInfoImpl(); 20 UserInfoImpl();
21 virtual ~UserInfoImpl(); 21 ~UserInfoImpl() override;
22 22
23 // UserInfo: 23 // UserInfo:
24 virtual base::string16 GetDisplayName() const override; 24 base::string16 GetDisplayName() const override;
25 virtual base::string16 GetGivenName() const override; 25 base::string16 GetGivenName() const override;
26 virtual std::string GetEmail() const override; 26 std::string GetEmail() const override;
27 virtual std::string GetUserID() const override; 27 std::string GetUserID() const override;
28 virtual const gfx::ImageSkia& GetImage() const override; 28 const gfx::ImageSkia& GetImage() const override;
29 29
30 private: 30 private:
31 gfx::ImageSkia user_image_; 31 gfx::ImageSkia user_image_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(UserInfoImpl); 33 DISALLOW_COPY_AND_ASSIGN(UserInfoImpl);
34 }; 34 };
35 35
36 } // namespace user_manager 36 } // namespace user_manager
37 37
38 #endif // COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ 38 #endif // COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « components/user_manager/empty_user_info.h ('k') | components/variations/net/variations_http_header_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698