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

Unified Diff: chrome/installer/util/install_util.h

Issue 4342001: Refactoring the master_preferences functions.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/install_util.h
===================================================================
--- chrome/installer/util/install_util.h (revision 64604)
+++ chrome/installer/util/install_util.h (working copy)
@@ -15,6 +15,7 @@
#include <string>
#include "base/basictypes.h"
+#include "chrome/installer/util/master_preferences.h"
#include "chrome/installer/util/util_constants.h"
#include "chrome/installer/util/version.h"
@@ -118,6 +119,12 @@
static bool DeleteRegistryValue(HKEY reg_root, const std::wstring& key_path,
const std::wstring& value_name);
+ // Returns a static preference object that has been initialized with the
+ // CommandLine object for the current process.
+ // NOTE: Must not be called before CommandLine::Init() is called!
+ static const installer_util::MasterPreferences&
+ GetMasterPreferencesForCurrentProcess();
+
private:
DISALLOW_COPY_AND_ASSIGN(InstallUtil);
};
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698