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

Unified Diff: tools/on_demand_service_tool.mm

Issue 627273004: Don’t use using directives (“using namespace”) in tools (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 2 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 | « tools/exception_port_tool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/on_demand_service_tool.mm
diff --git a/tools/on_demand_service_tool.mm b/tools/on_demand_service_tool.mm
index 946989c7fa3767dbfa45b93c74b73fcc64c07bec..460f4cd8eda6c814e143f62f06b2e6ac1ea9916d 100644
--- a/tools/on_demand_service_tool.mm
+++ b/tools/on_demand_service_tool.mm
@@ -30,10 +30,9 @@
#include "util/mac/service_management.h"
#include "util/stdlib/objc.h"
+namespace crashpad {
namespace {
-using namespace crashpad;
-
void Usage(const std::string& me) {
fprintf(stderr,
"Usage: %s -L -l LABEL [OPTION]... COMMAND [ARG]...\n"
@@ -52,9 +51,7 @@ void Usage(const std::string& me) {
ToolSupport::UsageTail(me);
}
-} // namespace
-
-int main(int argc, char* argv[]) {
+int OnDemandServiceToolMain(int argc, char* argv[]) {
const std::string me(basename(argv[0]));
enum Operation {
@@ -190,3 +187,10 @@ int main(int argc, char* argv[]) {
}
}
}
+
+} // namespace
+} // namespace crashpad
+
+int main(int argc, char* argv[]) {
+ return crashpad::OnDemandServiceToolMain(argc, argv);
+}
« no previous file with comments | « tools/exception_port_tool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698