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

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 654223009: Standardize usage of virtual/override/final in chrome/browser/profiles/ (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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool success, 146 bool success,
147 bool is_new_profile) = 0; 147 bool is_new_profile) = 0;
148 }; 148 };
149 149
150 // Key used to bind profile to the widget with which it is associated. 150 // Key used to bind profile to the widget with which it is associated.
151 static const char kProfileKey[]; 151 static const char kProfileKey[];
152 // Value representing no hosted domain in the kProfileHostedDomain preference. 152 // Value representing no hosted domain in the kProfileHostedDomain preference.
153 static const char kNoHostedDomainFound[]; 153 static const char kNoHostedDomainFound[];
154 154
155 Profile(); 155 Profile();
156 virtual ~Profile(); 156 ~Profile() override;
157 157
158 // Profile prefs are registered as soon as the prefs are loaded for the first 158 // Profile prefs are registered as soon as the prefs are loaded for the first
159 // time. 159 // time.
160 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 160 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
161 161
162 // Create a new profile given a path. If |create_mode| is 162 // Create a new profile given a path. If |create_mode| is
163 // CREATE_MODE_ASYNCHRONOUS then the profile is initialized asynchronously. 163 // CREATE_MODE_ASYNCHRONOUS then the profile is initialized asynchronously.
164 static Profile* CreateProfile(const base::FilePath& path, 164 static Profile* CreateProfile(const base::FilePath& path,
165 Delegate* delegate, 165 Delegate* delegate,
166 CreateMode create_mode); 166 CreateMode create_mode);
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 410
411 DISALLOW_COPY_AND_ASSIGN(Profile); 411 DISALLOW_COPY_AND_ASSIGN(Profile);
412 }; 412 };
413 413
414 // The comparator for profile pointers as key in a map. 414 // The comparator for profile pointers as key in a map.
415 struct ProfileCompare { 415 struct ProfileCompare {
416 bool operator()(Profile* a, Profile* b) const; 416 bool operator()(Profile* a, Profile* b) const;
417 }; 417 };
418 418
419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698