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

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

Issue 10693139: Remove #pragma once from chrome/browser/{tab_contents,password_manager,profiles,search_engines,noti… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_PROFILES_CHROME_VERSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_CHROME_VERSION_SERVICE_H_
6 #define CHROME_BROWSER_PROFILES_CHROME_VERSION_SERVICE_H_ 6 #define CHROME_BROWSER_PROFILES_CHROME_VERSION_SERVICE_H_
7 #pragma once
8 7
9 #include <string> 8 #include <string>
10 9
11 #include "base/basictypes.h" 10 #include "base/basictypes.h"
12 11
13 class PrefService; 12 class PrefService;
14 13
15 // This service manages a pref which is used to determine the version of 14 // This service manages a pref which is used to determine the version of
16 // Chrome by which the profile was created. 15 // Chrome by which the profile was created.
17 class ChromeVersionService { 16 class ChromeVersionService {
18 public: 17 public:
19 // Register the user pref we use. 18 // Register the user pref we use.
20 static void RegisterUserPrefs(PrefService* prefs); 19 static void RegisterUserPrefs(PrefService* prefs);
21 20
22 // Sets the version string in the pref for the current profile. 21 // Sets the version string in the pref for the current profile.
23 static void SetVersion(PrefService* prefs, const std::string& version); 22 static void SetVersion(PrefService* prefs, const std::string& version);
24 23
25 // Returns the version of Chrome which created the profile. 24 // Returns the version of Chrome which created the profile.
26 static std::string GetVersion(PrefService* prefs); 25 static std::string GetVersion(PrefService* prefs);
27 26
28 // Handles setting the profile.created_by_version Pref 27 // Handles setting the profile.created_by_version Pref
29 static void OnProfileLoaded(PrefService* prefs, bool is_new_profile); 28 static void OnProfileLoaded(PrefService* prefs, bool is_new_profile);
30 29
31 private: 30 private:
32 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeVersionService); 31 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeVersionService);
33 }; 32 };
34 33
35 #endif // CHROME_BROWSER_PROFILES_CHROME_VERSION_SERVICE_H_ 34 #endif // CHROME_BROWSER_PROFILES_CHROME_VERSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_x.h ('k') | chrome/browser/profiles/gaia_info_update_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698