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_warning_service.h" | 5 #include "chrome/browser/extensions/extension_warning_service.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
11 #include "chrome/browser/extensions/extension_system.h" | 11 #include "chrome/browser/extensions/extension_system.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/common/extensions/extension.h" | |
15 | |
16 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
| 16 #include "extensions/common/extension.h" |
18 | 17 |
19 using content::BrowserThread; | 18 using content::BrowserThread; |
20 | 19 |
21 namespace extensions { | 20 namespace extensions { |
22 | 21 |
23 ExtensionWarningService::ExtensionWarningService(Profile* profile) | 22 ExtensionWarningService::ExtensionWarningService(Profile* profile) |
24 : profile_(profile) { | 23 : profile_(profile) { |
25 DCHECK(CalledOnValidThread()); | 24 DCHECK(CalledOnValidThread()); |
26 if (profile_) { | 25 if (profile_) { |
27 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, | 26 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ClearWarnings(warning_types); | 135 ClearWarnings(warning_types); |
137 break; | 136 break; |
138 } | 137 } |
139 default: | 138 default: |
140 NOTREACHED(); | 139 NOTREACHED(); |
141 break; | 140 break; |
142 } | 141 } |
143 } | 142 } |
144 | 143 |
145 } // namespace extensions | 144 } // namespace extensions |
OLD | NEW |