| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/webui/extensions/extension_error_handler.h" | 5 #include "chrome/browser/ui/webui/extensions/extension_error_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/webui/extensions/extension_error_ui_util.h" | 12 #include "chrome/browser/ui/webui/extensions/extension_error_ui_util.h" |
| 13 #include "chrome/grit/generated_resources.h" |
| 13 #include "content/public/browser/web_ui.h" | 14 #include "content/public/browser/web_ui.h" |
| 14 #include "content/public/browser/web_ui_data_source.h" | 15 #include "content/public/browser/web_ui_data_source.h" |
| 15 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
| 16 #include "grit/generated_resources.h" | |
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 18 | 18 |
| 19 namespace extensions { | 19 namespace extensions { |
| 20 | 20 |
| 21 ExtensionErrorHandler::ExtensionErrorHandler(Profile* profile) | 21 ExtensionErrorHandler::ExtensionErrorHandler(Profile* profile) |
| 22 : profile_(profile), | 22 : profile_(profile), |
| 23 weak_ptr_factory_(this) { | 23 weak_ptr_factory_(this) { |
| 24 } | 24 } |
| 25 | 25 |
| 26 ExtensionErrorHandler::~ExtensionErrorHandler() { | 26 ExtensionErrorHandler::~ExtensionErrorHandler() { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 if (!args->GetDictionary(0, &dict)) { | 112 if (!args->GetDictionary(0, &dict)) { |
| 113 NOTREACHED(); | 113 NOTREACHED(); |
| 114 return; | 114 return; |
| 115 } | 115 } |
| 116 | 116 |
| 117 error_ui_util::HandleOpenDevTools(dict); | 117 error_ui_util::HandleOpenDevTools(dict); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace extensions | 120 } // namespace extensions |
| OLD | NEW |