| 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/browser/extensions/extension_error_reporter.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/common/platform_util.h" | 12 #include "chrome/browser/platform_util.h" |
| 13 | 13 |
| 14 // No AddRef required when using ExtensionErrorReporter with RunnableMethod. | 14 // No AddRef required when using ExtensionErrorReporter with RunnableMethod. |
| 15 // This is okay since the ExtensionErrorReporter is a singleton that lives until | 15 // This is okay since the ExtensionErrorReporter is a singleton that lives until |
| 16 // the end of the process. | 16 // the end of the process. |
| 17 template <> struct RunnableMethodTraits<ExtensionErrorReporter> { | 17 template <> struct RunnableMethodTraits<ExtensionErrorReporter> { |
| 18 void RetainCallee(ExtensionErrorReporter*) {} | 18 void RetainCallee(ExtensionErrorReporter*) {} |
| 19 void ReleaseCallee(ExtensionErrorReporter*) {} | 19 void ReleaseCallee(ExtensionErrorReporter*) {} |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 ExtensionErrorReporter* ExtensionErrorReporter::instance_ = NULL; | 22 ExtensionErrorReporter* ExtensionErrorReporter::instance_ = NULL; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 const std::vector<std::string>* ExtensionErrorReporter::GetErrors() { | 65 const std::vector<std::string>* ExtensionErrorReporter::GetErrors() { |
| 66 return &errors_; | 66 return &errors_; |
| 67 } | 67 } |
| 68 | 68 |
| 69 void ExtensionErrorReporter::ClearErrors() { | 69 void ExtensionErrorReporter::ClearErrors() { |
| 70 errors_.clear(); | 70 errors_.clear(); |
| 71 } | 71 } |
| OLD | NEW |