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