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

Unified Diff: chrome/browser/operation_output.cc

Issue 12674028: Report text output and exit code for command-line operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgotten review responses. Created 7 years, 8 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/browser/operation_output.h ('k') | chrome/browser/operation_output_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/operation_output.cc
diff --git a/chrome/browser/operation_output.cc b/chrome/browser/operation_output.cc
new file mode 100644
index 0000000000000000000000000000000000000000..51479195aa2e8a841f627b6dc771601585d5ad2d
--- /dev/null
+++ b/chrome/browser/operation_output.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 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.
+
+#include "chrome/browser/operation_output.h"
+
+#include "base/logging.h"
+
+#if !defined(OS_WIN)
+// static
+scoped_ptr<OperationOutput> OperationOutput::Create(
+ const CommandLine& command_line) {
+ return scoped_ptr<OperationOutput>();
+}
+#endif // !defined(OS_WIN)
+
+// static
+bool OperationOutput::Complete(scoped_ptr<OperationOutput> operation_output,
+ unsigned int exit_code) {
+ if (operation_output)
+ return operation_output->SetExitCode(exit_code);
+
+ NOTREACHED();
+ return false;
+}
« no previous file with comments | « chrome/browser/operation_output.h ('k') | chrome/browser/operation_output_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698