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

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 1120006: detect preferences errors (Closed)
Patch Set: changes from review Created 10 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_EXTENSIONS_EXTENSION_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // and neither will external extensions the user has explicitly uninstalled. 106 // and neither will external extensions the user has explicitly uninstalled.
107 // Caller takes ownership of returned structure. 107 // Caller takes ownership of returned structure.
108 ExtensionsInfo* GetInstalledExtensionsInfo(); 108 ExtensionsInfo* GetInstalledExtensionsInfo();
109 109
110 // Returns the ExtensionInfo from the prefs for the given extension. If the 110 // Returns the ExtensionInfo from the prefs for the given extension. If the
111 // extension is not present, NULL is returned. 111 // extension is not present, NULL is returned.
112 ExtensionInfo* GetInstalledExtensionInfo(const std::string& extension_id); 112 ExtensionInfo* GetInstalledExtensionInfo(const std::string& extension_id);
113 113
114 static void RegisterUserPrefs(PrefService* prefs); 114 static void RegisterUserPrefs(PrefService* prefs);
115 115
116 // The underlying PrefService.
117 PrefService* pref_service() const { return prefs_; }
118
116 private: 119 private:
117 120
118 // Converts absolute paths in the pref to paths relative to the 121 // Converts absolute paths in the pref to paths relative to the
119 // install_directory_. 122 // install_directory_.
120 void MakePathsRelative(); 123 void MakePathsRelative();
121 124
122 // Converts internal relative paths to be absolute. Used for export to 125 // Converts internal relative paths to be absolute. Used for export to
123 // consumers who expect full paths. 126 // consumers who expect full paths.
124 void MakePathsAbsolute(DictionaryValue* dict); 127 void MakePathsAbsolute(DictionaryValue* dict);
125 128
(...skipping 30 matching lines...) Expand all
156 // Base extensions install directory. 159 // Base extensions install directory.
157 FilePath install_directory_; 160 FilePath install_directory_;
158 161
159 // The URLs of all of the toolstrips. 162 // The URLs of all of the toolstrips.
160 URLList shelf_order_; 163 URLList shelf_order_;
161 164
162 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 165 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
163 }; 166 };
164 167
165 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 168 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_theme_pack_unittest.cc ('k') | chrome/browser/extensions/extension_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698