summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/install_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/install_util.cc')
-rw-r--r--chrome/installer/util/install_util.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/chrome/installer/util/install_util.cc b/chrome/installer/util/install_util.cc
index d5fe07d..74b4e9f 100644
--- a/chrome/installer/util/install_util.cc
+++ b/chrome/installer/util/install_util.cc
@@ -138,17 +138,8 @@ bool InstallUtil::IsPerUserInstall(const wchar_t* const exe_path) {
}
bool InstallUtil::IsChromeFrameProcess() {
- FilePath module_path;
- PathService::Get(base::FILE_MODULE, &module_path);
- std::wstring module_name(module_path.BaseName().value());
-
const MasterPreferences& prefs = GetMasterPreferencesForCurrentProcess();
- bool is_cf = false;
- prefs.GetBool(installer_util::master_preferences::kChromeFrame, &is_cf);
-
- // Also assume this to be a ChromeFrame process if we are running inside
- // the Chrome Frame DLL.
- return is_cf || module_name == installer_util::kChromeFrameDll;
+ return prefs.install_chrome_frame();
}
bool InstallUtil::IsChromeSxSProcess() {