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/debug_daemon_log_source.h" | 5 #include "chrome/browser/chromeos/system_logs/debug_daemon_log_source.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "chrome/browser/chromeos/login/user_manager.h" | 15 #include "chrome/browser/chromeos/login/users/user_manager.h" |
16 #include "chrome/browser/profiles/profile_manager.h" | 16 #include "chrome/browser/profiles/profile_manager.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chromeos/dbus/dbus_thread_manager.h" | 18 #include "chromeos/dbus/dbus_thread_manager.h" |
19 #include "chromeos/dbus/debug_daemon_client.h" | 19 #include "chromeos/dbus/debug_daemon_client.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 | 21 |
22 const char kNotAvailable[] = "<not available>"; | 22 const char kNotAvailable[] = "<not available>"; |
23 const char kRoutesKeyName[] = "routes"; | 23 const char kRoutesKeyName[] = "routes"; |
24 const char kNetworkStatusKeyName[] = "network-status"; | 24 const char kNetworkStatusKeyName[] = "network-status"; |
25 const char kModemStatusKeyName[] = "modem-status"; | 25 const char kModemStatusKeyName[] = "modem-status"; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 194 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
195 DCHECK(!callback_.is_null()); | 195 DCHECK(!callback_.is_null()); |
196 | 196 |
197 --num_pending_requests_; | 197 --num_pending_requests_; |
198 if (num_pending_requests_ > 0) | 198 if (num_pending_requests_ > 0) |
199 return; | 199 return; |
200 callback_.Run(response_.get()); | 200 callback_.Run(response_.get()); |
201 } | 201 } |
202 | 202 |
203 } // namespace system_logs | 203 } // namespace system_logs |
OLD | NEW |