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

Unified Diff: chrome/common/service_process_util_win.cc

Issue 6591002: Removed the command line from ServiceProcessState::AddToAutoRun() and had the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/common/service_process_util_win.cc
===================================================================
--- chrome/common/service_process_util_win.cc (revision 75945)
+++ chrome/common/service_process_util_win.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "base/scoped_ptr.h"
#include "base/string16.h"
#include "base/task.h"
#include "base/utf_string_conversions.h"
@@ -125,11 +126,12 @@
return true;
}
-bool ServiceProcessState::AddToAutoRun(CommandLine* cmd_line) {
+bool ServiceProcessState::AddToAutoRun() {
+ DCHECK(autorun_command_line_.get());
return base::win::AddCommandToAutoRun(
HKEY_CURRENT_USER,
UTF8ToWide(GetServiceProcessAutoRunKey()),
- cmd_line->command_line_string());
+ autorun_command_line_->command_line_string());
}
bool ServiceProcessState::RemoveFromAutoRun() {

Powered by Google App Engine
This is Rietveld 408576698