Chromium Code Reviews| 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 1345788ac11f1ba5db4214e9e35fda963f270d1a..7ea79261c0df8acc4d95d5dc9047c9a13764aed3 100644 |
| --- a/chrome/common/service_process_util_mac.mm |
| +++ b/chrome/common/service_process_util_mac.mm |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -60,15 +60,6 @@ NSString* GetServiceProcessLaunchDSocketKey() { |
| return @"ServiceProcessSocket"; |
| } |
| -NSString* GetServiceProcessLaunchDSocketEnvVar() { |
| - NSString *label = GetServiceProcessLaunchDLabel(); |
| - NSString *env_var = [label stringByReplacingOccurrencesOfString:@"." |
| - withString:@"_"]; |
| - env_var = [env_var stringByAppendingString:@"_SOCKET"]; |
| - env_var = [env_var uppercaseString]; |
| - return env_var; |
| -} |
| - |
| bool GetParentFSRef(const FSRef& child, FSRef* parent) { |
| return FSGetCatalogInfo(&child, 0, NULL, NULL, NULL, parent) == noErr; |
| } |
| @@ -96,6 +87,15 @@ class ExecFilePathWatcherDelegate : public FilePathWatcher::Delegate { |
| } // namespace |
| +NSString* GetServiceProcessLaunchDSocketEnvVar() { |
|
Albert Bodenhamer
2012/01/23 18:05:41
NIT: It looks like this code just changed position
Scott Byer
2012/01/23 19:03:46
Yup, out of the anon. namespace so the tests could
|
| + NSString *label = GetServiceProcessLaunchDLabel(); |
| + NSString *env_var = [label stringByReplacingOccurrencesOfString:@"." |
| + withString:@"_"]; |
| + env_var = [env_var stringByAppendingString:@"_SOCKET"]; |
| + env_var = [env_var uppercaseString]; |
| + return env_var; |
| +} |
| + |
| // Gets the name of the service process IPC channel. |
| IPC::ChannelHandle GetServiceProcessChannel() { |
| base::mac::ScopedNSAutoreleasePool pool; |