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

Unified Diff: chrome/browser/mac/dock.mm

Issue 9837098: Move launchd code from chrome/browser/mac to base/mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 | « base/mac/scoped_launch_data.h ('k') | chrome/browser/mac/launchd.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mac/dock.mm
diff --git a/chrome/browser/mac/dock.mm b/chrome/browser/mac/dock.mm
index 39c33b98a0755145c90d1d0ac120a7915b1b0a0d..1256b17b7406ebe6fbd5167ca9fd58877c837401 100644
--- a/chrome/browser/mac/dock.mm
+++ b/chrome/browser/mac/dock.mm
@@ -10,12 +10,12 @@
#include <signal.h>
#include "base/logging.h"
+#include "base/mac/launchd.h"
#include "base/mac/mac_logging.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/sys_string_conversions.h"
-#include "chrome/browser/mac/launchd.h"
extern "C" {
@@ -176,7 +176,7 @@ void Restart() {
// Doing this via launchd using the proper job label is the safest way to
// handle the restart. Unlike "killall Dock", looking this up via launchd
// guarantees that only the right process will be targeted.
- pid = launchd::PIDForJob("com.apple.Dock.agent");
+ pid = base::mac::PIDForJob("com.apple.Dock.agent");
} else {
// On Leopard, the Dock doesn't have a known fixed job label name as it
// does on Snow Leopard and Lion because it's not launched as a launch
« no previous file with comments | « base/mac/scoped_launch_data.h ('k') | chrome/browser/mac/launchd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698