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

Unified Diff: chrome_frame/chrome_tab.cc

Issue 7065024: Add a self-destruct mechanism to user-level Chrome Frame when it detects that system-level Chrome... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/chrome_tab.cc
===================================================================
--- chrome_frame/chrome_tab.cc (revision 85906)
+++ chrome_frame/chrome_tab.cc (working copy)
@@ -70,6 +70,7 @@
const wchar_t kRunKeyName[] = L"ChromeFrameHelper";
const wchar_t kChromeFrameHelperExe[] = L"chrome_frame_helper.exe";
+const wchar_t kChromeFrameHelperFirstRunArg[] = L"--first-run";
// Window class and window names.
// TODO(robertshield): These and other constants need to be refactored into
@@ -375,9 +376,13 @@
kChromeFrameHelperWindowName);
if (file_util::PathExists(helper_path)) {
+ std::wstring helper_path_cmd(helper_path.value());
grt (UTC plus 2) 2011/05/25 16:10:07 I think it's best to quote the path. Unless, of c
robertshield 2011/05/26 15:14:28 Done.
+ helper_path_cmd += L" ";
+ helper_path_cmd += kChromeFrameHelperFirstRunArg;
grt (UTC plus 2) 2011/05/25 16:10:07 Why not chrome::switches::kFirstRun?
robertshield 2011/05/26 15:14:28 they do different things, sorry I hadn't uploaded
+
// Add new run-at-startup entry.
base::win::AddCommandToAutoRun(HKEY_CURRENT_USER, kRunKeyName,
- helper_path.value());
+ helper_path_cmd);
// Start new instance.
bool launched = base::LaunchApp(helper_path.value(), false, true, NULL);
« chrome_frame/chrome_frame_launcher.gyp ('K') | « chrome_frame/chrome_frame_launcher.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698