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

Unified Diff: chrome/common/service_process_util_win.cc

Issue 12315071: Revert 184352 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « chrome/common/service_process_util_unittest.cc ('k') | chrome/installer/gcapi/gcapi_last_run_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util_win.cc
===================================================================
--- chrome/common/service_process_util_win.cc (revision 184354)
+++ chrome/common/service_process_util_win.cc (working copy)
@@ -23,12 +23,12 @@
const char* kTerminateEventSuffix = "_service_terminate_evt";
string16 GetServiceProcessReadyEventName() {
- return base::UTF8ToWide(
+ return UTF8ToWide(
GetServiceProcessScopedVersionedName("_service_ready"));
}
string16 GetServiceProcessTerminateEventName() {
- return base::UTF8ToWide(
+ return UTF8ToWide(
GetServiceProcessScopedVersionedName(kTerminateEventSuffix));
}
@@ -41,7 +41,7 @@
std::string GetObsoleteServiceProcessAutoRunKey() {
base::FilePath user_data_dir;
PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
- std::string scoped_name = base::WideToUTF8(user_data_dir.value());
+ std::string scoped_name = WideToUTF8(user_data_dir.value());
std::replace(scoped_name.begin(), scoped_name.end(), '\\', '!');
std::replace(scoped_name.begin(), scoped_name.end(), '/', '!');
scoped_name.append("_service_run");
@@ -88,7 +88,7 @@
std::string versioned_name = version;
versioned_name.append(kTerminateEventSuffix);
string16 event_name =
- base::UTF8ToWide(GetServiceProcessScopedName(versioned_name));
+ UTF8ToWide(GetServiceProcessScopedName(versioned_name));
terminate_event.Set(OpenEvent(EVENT_MODIFY_STATE, FALSE, event_name.c_str()));
if (!terminate_event.IsValid())
return false;
@@ -153,11 +153,10 @@
// Remove the old autorun value first because we changed the naming scheme
// for the autorun value name.
base::win::RemoveCommandFromAutoRun(
- HKEY_CURRENT_USER,
- base::UTF8ToWide(GetObsoleteServiceProcessAutoRunKey()));
+ HKEY_CURRENT_USER, UTF8ToWide(GetObsoleteServiceProcessAutoRunKey()));
return base::win::AddCommandToAutoRun(
HKEY_CURRENT_USER,
- base::UTF8ToWide(GetServiceProcessAutoRunKey()),
+ UTF8ToWide(GetServiceProcessAutoRunKey()),
autorun_command_line_->GetCommandLineString());
}
@@ -165,10 +164,9 @@
// Remove the old autorun value first because we changed the naming scheme
// for the autorun value name.
base::win::RemoveCommandFromAutoRun(
- HKEY_CURRENT_USER,
- base::UTF8ToWide(GetObsoleteServiceProcessAutoRunKey()));
+ HKEY_CURRENT_USER, UTF8ToWide(GetObsoleteServiceProcessAutoRunKey()));
return base::win::RemoveCommandFromAutoRun(
- HKEY_CURRENT_USER, base::UTF8ToWide(GetServiceProcessAutoRunKey()));
+ HKEY_CURRENT_USER, UTF8ToWide(GetServiceProcessAutoRunKey()));
}
void ServiceProcessState::TearDownState() {
« no previous file with comments | « chrome/common/service_process_util_unittest.cc ('k') | chrome/installer/gcapi/gcapi_last_run_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698