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/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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/ui/simple_message_box.h" | 14 #include "chrome/browser/ui/simple_message_box.h" |
15 | 15 |
16 ExtensionErrorReporter* ExtensionErrorReporter::instance_ = NULL; | 16 ExtensionErrorReporter* ExtensionErrorReporter::instance_ = NULL; |
17 | 17 |
18 // static | 18 // static |
19 void ExtensionErrorReporter::Init(bool enable_noisy_errors) { | 19 void ExtensionErrorReporter::Init(bool enable_noisy_errors) { |
20 if (!instance_) { | 20 if (!instance_) { |
21 instance_ = new ExtensionErrorReporter(enable_noisy_errors); | 21 instance_ = new ExtensionErrorReporter(enable_noisy_errors); |
22 } | 22 } |
23 } | 23 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 const std::vector<string16>* ExtensionErrorReporter::GetErrors() { | 64 const std::vector<string16>* ExtensionErrorReporter::GetErrors() { |
65 return &errors_; | 65 return &errors_; |
66 } | 66 } |
67 | 67 |
68 void ExtensionErrorReporter::ClearErrors() { | 68 void ExtensionErrorReporter::ClearErrors() { |
69 errors_.clear(); | 69 errors_.clear(); |
70 } | 70 } |
OLD | NEW |