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/data_deleter.h" | 5 #include "chrome/browser/extensions/data_deleter.h" |
6 | 6 |
7 #include "chrome/browser/extensions/api/storage/settings_frontend.h" | |
8 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 8 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | 10 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" |
12 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 11 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
13 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
14 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/site_instance.h" | 14 #include "content/public/browser/site_instance.h" |
16 #include "content/public/browser/storage_partition.h" | 15 #include "content/public/browser/storage_partition.h" |
| 16 #include "extensions/browser/api/storage/settings_frontend.h" |
17 #include "extensions/browser/extension_prefs.h" | 17 #include "extensions/browser/extension_prefs.h" |
18 #include "extensions/common/constants.h" | 18 #include "extensions/common/constants.h" |
19 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
20 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
21 | 21 |
22 using base::WeakPtr; | 22 using base::WeakPtr; |
23 using content::BrowserContext; | 23 using content::BrowserContext; |
24 using content::BrowserThread; | 24 using content::BrowserThread; |
25 using content::StoragePartition; | 25 using content::StoragePartition; |
26 | 26 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 102 } |
103 | 103 |
104 // Begin removal of the settings for the current extension. | 104 // Begin removal of the settings for the current extension. |
105 // SettingsFrontend may not exist in unit tests. | 105 // SettingsFrontend may not exist in unit tests. |
106 SettingsFrontend* frontend = SettingsFrontend::Get(profile); | 106 SettingsFrontend* frontend = SettingsFrontend::Get(profile); |
107 if (frontend) | 107 if (frontend) |
108 frontend->DeleteStorageSoon(extension->id()); | 108 frontend->DeleteStorageSoon(extension->id()); |
109 } | 109 } |
110 | 110 |
111 } // namespace extensions | 111 } // namespace extensions |
OLD | NEW |