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

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

Issue 345021: Continue to remove CHROME_FRAME_BUILD define from code that goes into chrome.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: chrome/installer/util/install_util.cc
===================================================================
--- chrome/installer/util/install_util.cc (revision 30960)
+++ chrome/installer/util/install_util.cc (working copy)
@@ -12,6 +12,7 @@
#include <algorithm>
+#include "base/command_line.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/registry.h"
@@ -22,6 +23,7 @@
#include "chrome/installer/util/browser_distribution.h"
#include "chrome/installer/util/google_update_constants.h"
#include "chrome/installer/util/l10n_string_util.h"
+#include "chrome/installer/util/util_constants.h"
#include "chrome/installer/util/work_item_list.h"
bool InstallUtil::ExecuteExeAsAdmin(const std::wstring& exe,
@@ -127,6 +129,13 @@
return true;
}
+bool InstallUtil::IsChromeFrameProcess() {
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ DCHECK(command_line)
+ << "IsChromeFrameProcess() called before ComamandLine::Init()";
+ return command_line->HasSwitch(installer_util::switches::kChromeFrame);
+}
+
bool InstallUtil::BuildDLLRegistrationList(const std::wstring& install_path,
const wchar_t** const dll_names,
int dll_names_count,

Powered by Google App Engine
This is Rietveld 408576698