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

Side by Side 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: Line endings. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/operation_output.h"
6
7 #include "base/logging.h"
8
9 #if !defined(OS_WIN)
10 // static
11 scoped_ptr<OperationOutput> OperationOutput::Create(
12 const CommandLine& command_line) {
13 return scoped_ptr<OperationOutput>();
14 }
15 #endif // !defined(OS_WIN)
16
17 // static
18 bool OperationOutput::Complete(scoped_ptr<OperationOutput> operation_output,
19 unsigned int exit_code) {
20 if (operation_output)
21 return operation_output->SetExitCode(exit_code);
22
23 NOTREACHED();
24 return false;
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698