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" | 7 #include "chrome/browser/extensions/api/storage/settings_frontend.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/common/extensions/extension.h" | |
11 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/storage_partition.h" | 12 #include "content/public/browser/storage_partition.h" |
14 #include "extensions/common/constants.h" | 13 #include "extensions/common/constants.h" |
| 14 #include "extensions/common/extension.h" |
15 #include "net/url_request/url_request_context_getter.h" | 15 #include "net/url_request/url_request_context_getter.h" |
16 | 16 |
17 using content::BrowserContext; | 17 using content::BrowserContext; |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 using content::StoragePartition; | 19 using content::StoragePartition; |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 // static | 23 // static |
24 void DataDeleter::StartDeleting(Profile* profile, | 24 void DataDeleter::StartDeleting(Profile* profile, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 storage_origin, | 58 storage_origin, |
59 partition->GetURLRequestContext()); | 59 partition->GetURLRequestContext()); |
60 } | 60 } |
61 | 61 |
62 // Begin removal of the settings for the current extension. | 62 // Begin removal of the settings for the current extension. |
63 profile->GetExtensionService()->settings_frontend()-> | 63 profile->GetExtensionService()->settings_frontend()-> |
64 DeleteStorageSoon(extension_id); | 64 DeleteStorageSoon(extension_id); |
65 } | 65 } |
66 | 66 |
67 } // namespace extensions | 67 } // namespace extensions |
OLD | NEW |