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_ui_default.h" | 5 #include "chrome/browser/extensions/extension_error_ui_default.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" |
13 #include "chrome/browser/ui/chrome_pages.h" | 13 #include "chrome/browser/ui/chrome_pages.h" |
14 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" | 14 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" |
| 15 #include "chrome/browser/ui/host_desktop.h" |
15 | 16 |
16 namespace extensions { | 17 namespace extensions { |
17 | 18 |
18 ExtensionErrorUIDefault::ExtensionErrorUIDefault( | 19 ExtensionErrorUIDefault::ExtensionErrorUIDefault( |
19 ExtensionErrorUI::Delegate* delegate) | 20 ExtensionErrorUI::Delegate* delegate) |
20 : ExtensionErrorUI(delegate), | 21 : ExtensionErrorUI(delegate), |
21 profile_(Profile::FromBrowserContext(delegate->GetContext())), | 22 profile_(Profile::FromBrowserContext(delegate->GetContext())), |
22 browser_(NULL), | 23 browser_(NULL), |
23 global_error_(new ExtensionGlobalError(this)) { | 24 global_error_(new ExtensionGlobalError(this)) { |
24 } | 25 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 error_ui_->BubbleViewCancelButtonPressed(); | 110 error_ui_->BubbleViewCancelButtonPressed(); |
110 } | 111 } |
111 | 112 |
112 // static | 113 // static |
113 ExtensionErrorUI* ExtensionErrorUI::Create( | 114 ExtensionErrorUI* ExtensionErrorUI::Create( |
114 ExtensionErrorUI::Delegate* delegate) { | 115 ExtensionErrorUI::Delegate* delegate) { |
115 return new ExtensionErrorUIDefault(delegate); | 116 return new ExtensionErrorUIDefault(delegate); |
116 } | 117 } |
117 | 118 |
118 } // namespace extensions | 119 } // namespace extensions |
OLD | NEW |