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

Side by Side Diff: chrome/browser/chromeos/system_logs/command_line_log_source.cc

Issue 1036723003: favor DCHECK_CURRENTLY_ON for better logs in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698