OLD | NEW |
---|---|
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/common/extensions/extension_error_reporter.h" | 5 #include "chrome/common/extensions/extension_error_reporter.h" |
6 | 6 |
7 #include "build/build_config.h" | |
Dean McNamee
2009/05/28 09:27:18
heh
| |
8 | |
7 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
8 #include "app/win_util.h" | 10 #include "app/win_util.h" |
9 #endif | 11 #endif |
12 #include "base/logging.h" | |
13 #include "base/message_loop.h" | |
10 #include "base/string_util.h" | 14 #include "base/string_util.h" |
11 | 15 |
12 // No AddRef required when using ExtensionErrorReporter with RunnableMethod. | 16 // No AddRef required when using ExtensionErrorReporter with RunnableMethod. |
13 // This is okay since the ExtensionErrorReporter is a singleton that lives until | 17 // This is okay since the ExtensionErrorReporter is a singleton that lives until |
14 // the end of the process. | 18 // the end of the process. |
15 template <> struct RunnableMethodTraits<ExtensionErrorReporter> { | 19 template <> struct RunnableMethodTraits<ExtensionErrorReporter> { |
16 static void RetainCallee(ExtensionErrorReporter*) {} | 20 static void RetainCallee(ExtensionErrorReporter*) {} |
17 static void ReleaseCallee(ExtensionErrorReporter*) {} | 21 static void ReleaseCallee(ExtensionErrorReporter*) {} |
18 }; | 22 }; |
19 | 23 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 } | 67 } |
64 } | 68 } |
65 | 69 |
66 const std::vector<std::string>* ExtensionErrorReporter::GetErrors() { | 70 const std::vector<std::string>* ExtensionErrorReporter::GetErrors() { |
67 return &errors_; | 71 return &errors_; |
68 } | 72 } |
69 | 73 |
70 void ExtensionErrorReporter::ClearErrors() { | 74 void ExtensionErrorReporter::ClearErrors() { |
71 errors_.clear(); | 75 errors_.clear(); |
72 } | 76 } |
OLD | NEW |