summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorhansl@google.com <hansl@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-22 03:20:27 +0000
committerhansl@google.com <hansl@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-22 03:20:27 +0000
commitfb7ad0741fd0d1675da8ea8a13c4124fc81135de (patch)
tree36b182e4aab3a4d95524ed760f463d47399724de /chrome/installer
parent3b8a7f8e37e223f3cfbdb6893a3e372ba1e72bc2 (diff)
downloadchromium_src-fb7ad0741fd0d1675da8ea8a13c4124fc81135de.zip
chromium_src-fb7ad0741fd0d1675da8ea8a13c4124fc81135de.tar.gz
chromium_src-fb7ad0741fd0d1675da8ea8a13c4124fc81135de.tar.bz2
Add awareness of the CEEE broker to BrowserDistribution. If the code called is inside the Broker, behave as if it was ChromeFrame.
BUG=None TEST=None Review URL: http://codereview.chromium.org/5247001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/util/browser_distribution.cc11
-rw-r--r--chrome/installer/util/util_constants.cc1
-rw-r--r--chrome/installer/util/util_constants.h1
3 files changed, 12 insertions, 1 deletions
diff --git a/chrome/installer/util/browser_distribution.cc b/chrome/installer/util/browser_distribution.cc
index 2bb6716..2e2ccf2 100644
--- a/chrome/installer/util/browser_distribution.cc
+++ b/chrome/installer/util/browser_distribution.cc
@@ -33,11 +33,20 @@ bool IsChromeFrameModule() {
installer_util::kChromeFrameDll);
}
+// Returns true if currently running in ceee_broker.exe
+bool IsCeeeBrokerProcess() {
+ FilePath exe_path;
+ PathService::Get(base::FILE_EXE, &exe_path);
+ return FilePath::CompareEqualIgnoreCase(exe_path.BaseName().value(),
+ installer_util::kCeeeBrokerExe);
+}
+
} // end namespace
BrowserDistribution* BrowserDistribution::GetDistribution() {
return GetDistribution(InstallUtil::IsChromeFrameProcess() ||
- IsChromeFrameModule());
+ IsChromeFrameModule() ||
+ IsCeeeBrokerProcess());
}
BrowserDistribution* BrowserDistribution::GetDistribution(bool chrome_frame) {
diff --git a/chrome/installer/util/util_constants.cc b/chrome/installer/util/util_constants.cc
index 04df035..66a0636 100644
--- a/chrome/installer/util/util_constants.cc
+++ b/chrome/installer/util/util_constants.cc
@@ -131,6 +131,7 @@ const char kToastResultsKey[] = "toast-results-key";
} // namespace switches
+const wchar_t kCeeeBrokerExe[] = L"ceee_broker.exe";
const wchar_t kChromeDll[] = L"chrome.dll";
const wchar_t kChromeExe[] = L"chrome.exe";
const wchar_t kChromeFrameDll[] = L"npchrome_frame.dll";
diff --git a/chrome/installer/util/util_constants.h b/chrome/installer/util/util_constants.h
index db53573..7cc4042 100644
--- a/chrome/installer/util/util_constants.h
+++ b/chrome/installer/util/util_constants.h
@@ -87,6 +87,7 @@ extern const char kSystemLevelToast[];
extern const char kToastResultsKey[];
} // namespace switches
+extern const wchar_t kCeeeBrokerExe[];
extern const wchar_t kChromeDll[];
extern const wchar_t kChromeExe[];
extern const wchar_t kChromeFrameDll[];