OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cros/syslogs_library.h" | 5 #include "chrome/browser/chromeos/cros/syslogs_library.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "chrome/browser/browser_thread.h" | |
11 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
12 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "content/browser/browser_thread.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 const char kContextFeedback[] = "feedback"; | 16 const char kContextFeedback[] = "feedback"; |
17 const char kContextSysInfo[] = "sysinfo"; | 17 const char kContextSysInfo[] = "sysinfo"; |
18 | 18 |
19 | 19 |
20 class SyslogsLibraryImpl : public SyslogsLibrary { | 20 class SyslogsLibraryImpl : public SyslogsLibrary { |
21 public: | 21 public: |
22 SyslogsLibraryImpl() {} | 22 SyslogsLibraryImpl() {} |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 LOG(ERROR) << "Cannot read compressed logs file from " << | 130 LOG(ERROR) << "Cannot read compressed logs file from " << |
131 zip_file.value().c_str(); | 131 zip_file.value().c_str(); |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 } // namespace chromeos | 135 } // namespace chromeos |
136 | 136 |
137 // Allows InvokeLater without adding refcounting. SyslogsLibraryImpl is a | 137 // Allows InvokeLater without adding refcounting. SyslogsLibraryImpl is a |
138 // Singleton and won't be deleted until it's last InvokeLater is run. | 138 // Singleton and won't be deleted until it's last InvokeLater is run. |
139 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::SyslogsLibraryImpl); | 139 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::SyslogsLibraryImpl); |
OLD | NEW |