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

Side by Side Diff: chrome/browser/ui/webui/options/create_profile_handler.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 11 matching lines...) Expand all
22 #if defined(ENABLE_MANAGED_USERS) 22 #if defined(ENABLE_MANAGED_USERS)
23 class SupervisedUserRegistrationUtility; 23 class SupervisedUserRegistrationUtility;
24 #endif 24 #endif
25 25
26 namespace options { 26 namespace options {
27 27
28 // Handler for the 'create profile' overlay. 28 // Handler for the 'create profile' overlay.
29 class CreateProfileHandler: public OptionsPageUIHandler { 29 class CreateProfileHandler: public OptionsPageUIHandler {
30 public: 30 public:
31 CreateProfileHandler(); 31 CreateProfileHandler();
32 virtual ~CreateProfileHandler(); 32 ~CreateProfileHandler() override;
33 33
34 // OptionsPageUIHandler implementation. 34 // OptionsPageUIHandler implementation.
35 virtual void GetLocalizedValues( 35 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
36 base::DictionaryValue* localized_strings) override;
37 36
38 // WebUIMessageHandler implementation. 37 // WebUIMessageHandler implementation.
39 virtual void RegisterMessages() override; 38 void RegisterMessages() override;
40 39
41 private: 40 private:
42 // Represents the final profile creation status. It is used to map 41 // Represents the final profile creation status. It is used to map
43 // the status to the javascript method to be called. 42 // the status to the javascript method to be called.
44 enum ProfileCreationStatus { 43 enum ProfileCreationStatus {
45 PROFILE_CREATION_SUCCESS, 44 PROFILE_CREATION_SUCCESS,
46 PROFILE_CREATION_ERROR, 45 PROFILE_CREATION_ERROR,
47 }; 46 };
48 47
49 // Represents the type of the in progress profile creation operation. 48 // Represents the type of the in progress profile creation operation.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 #endif 165 #endif
167 166
168 base::WeakPtrFactory<CreateProfileHandler> weak_ptr_factory_; 167 base::WeakPtrFactory<CreateProfileHandler> weak_ptr_factory_;
169 168
170 DISALLOW_COPY_AND_ASSIGN(CreateProfileHandler); 169 DISALLOW_COPY_AND_ASSIGN(CreateProfileHandler);
171 }; 170 };
172 171
173 } // namespace options 172 } // namespace options
174 173
175 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ 174 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698