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

Unified Diff: chrome/common/service_process_util_mac.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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_mac.mm
diff --git a/chrome/common/service_process_util_mac.mm b/chrome/common/service_process_util_mac.mm
index 03a61242cc05b36c43b1620ee07c216a38057b1a..02227104b58c27d0254f9543d2753bb0b28ad0ee 100644
--- a/chrome/common/service_process_util_mac.mm
+++ b/chrome/common/service_process_util_mac.mm
@@ -16,7 +16,7 @@
#include "base/mac/foundation_util.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_nsautorelease_pool.h"
-#include "base/memory/scoped_nsobject.h"
+#include "base/mac/scoped_nsobject.h"
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/strings/string_util.h"
@@ -43,7 +43,7 @@ CFStringRef CopyServiceProcessLaunchDName() {
}
NSString* GetServiceProcessLaunchDLabel() {
- scoped_nsobject<NSString> name(
+ base::scoped_nsobject<NSString> name(
base::mac::CFToNSCast(CopyServiceProcessLaunchDName()));
NSString *label = [name stringByAppendingString:@".service_process"];
base::FilePath user_data_dir;
@@ -100,7 +100,7 @@ NSString* GetServiceProcessLaunchDSocketEnvVar() {
IPC::ChannelHandle GetServiceProcessChannel() {
base::mac::ScopedNSAutoreleasePool pool;
std::string socket_path;
- scoped_nsobject<NSDictionary> dictionary(
+ base::scoped_nsobject<NSDictionary> dictionary(
base::mac::CFToNSCast(Launchd::GetInstance()->CopyExports()));
NSString *ns_socket_path =
[dictionary objectForKey:GetServiceProcessLaunchDSocketEnvVar()];
@@ -127,8 +127,8 @@ bool ForceServiceProcessShutdown(const std::string& /* version */,
bool GetServiceProcessData(std::string* version, base::ProcessId* pid) {
base::mac::ScopedNSAutoreleasePool pool;
CFStringRef label = base::mac::NSToCFCast(GetServiceProcessLaunchDLabel());
- scoped_nsobject<NSDictionary> launchd_conf(base::mac::CFToNSCast(
- Launchd::GetInstance()->CopyJobDictionary(label)));
+ base::scoped_nsobject<NSDictionary> launchd_conf(
+ base::mac::CFToNSCast(Launchd::GetInstance()->CopyJobDictionary(label)));
if (!launchd_conf.get()) {
return false;
}
@@ -404,9 +404,8 @@ void ExecFilePathWatcherCallback::NotifyPathChanged(const base::FilePath& path,
std::string new_path = base::mac::PathFromFSRef(executable_fsref_);
NSString* ns_new_path = base::SysUTF8ToNSString(new_path);
[ns_plist setObject:ns_new_path forKey:@ LAUNCH_JOBKEY_PROGRAM];
- scoped_nsobject<NSMutableArray> args(
- [[ns_plist objectForKey:@ LAUNCH_JOBKEY_PROGRAMARGUMENTS]
- mutableCopy]);
+ base::scoped_nsobject<NSMutableArray> args([[ns_plist
+ objectForKey:@LAUNCH_JOBKEY_PROGRAMARGUMENTS] mutableCopy]);
[args replaceObjectAtIndex:0 withObject:ns_new_path];
[ns_plist setObject:args forKey:@ LAUNCH_JOBKEY_PROGRAMARGUMENTS];
if (!Launchd::GetInstance()->WritePlistToFile(Launchd::User,

Powered by Google App Engine
This is Rietveld 408576698