OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/system_logs/command_line_log_source.h" | 5 #include "chrome/browser/chromeos/system_logs/command_line_log_source.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 namespace system_logs { | 99 namespace system_logs { |
100 | 100 |
101 CommandLineLogSource::CommandLineLogSource() : SystemLogsSource("CommandLine") { | 101 CommandLineLogSource::CommandLineLogSource() : SystemLogsSource("CommandLine") { |
102 } | 102 } |
103 | 103 |
104 CommandLineLogSource::~CommandLineLogSource() { | 104 CommandLineLogSource::~CommandLineLogSource() { |
105 } | 105 } |
106 | 106 |
107 void CommandLineLogSource::Fetch(const SysLogsSourceCallback& callback) { | 107 void CommandLineLogSource::Fetch(const SysLogsSourceCallback& callback) { |
108 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 108 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
109 DCHECK(!callback.is_null()); | 109 DCHECK(!callback.is_null()); |
110 | 110 |
111 SystemLogsResponse* response = new SystemLogsResponse; | 111 SystemLogsResponse* response = new SystemLogsResponse; |
112 BrowserThread::PostBlockingPoolTaskAndReply( | 112 BrowserThread::PostBlockingPoolTaskAndReply( |
113 FROM_HERE, | 113 FROM_HERE, |
114 base::Bind(&ExecuteCommandLines, response), | 114 base::Bind(&ExecuteCommandLines, response), |
115 base::Bind(callback, base::Owned(response))); | 115 base::Bind(callback, base::Owned(response))); |
116 } | 116 } |
117 | 117 |
118 } // namespace system_logs | 118 } // namespace system_logs |
OLD | NEW |