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 "extensions/browser/info_map.h" | 5 #include "extensions/browser/info_map.h" |
6 | 6 |
7 #include "content/public/browser/browser_thread.h" | 7 #include "content/public/browser/browser_thread.h" |
8 #include "extensions/common/constants.h" | 8 #include "extensions/common/constants.h" |
9 #include "extensions/common/extension.h" | 9 #include "extensions/common/extension.h" |
10 #include "extensions/common/extension_set.h" | 10 #include "extensions/common/extension_set.h" |
11 #include "extensions/common/manifest_handlers/incognito_info.h" | 11 #include "extensions/common/manifest_handlers/incognito_info.h" |
12 | 12 |
13 using content::BrowserThread; | 13 using content::BrowserThread; |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 void CheckOnValidThread() { | 19 void CheckOnValidThread() { DCHECK_CURRENTLY_ON(BrowserThread::IO); } |
20 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | |
21 } | |
22 | 20 |
23 } // namespace | 21 } // namespace |
24 | 22 |
25 struct InfoMap::ExtraData { | 23 struct InfoMap::ExtraData { |
26 // When the extension was installed. | 24 // When the extension was installed. |
27 base::Time install_time; | 25 base::Time install_time; |
28 | 26 |
29 // True if the user has allowed this extension to run in incognito mode. | 27 // True if the user has allowed this extension to run in incognito mode. |
30 bool incognito_enabled; | 28 bool incognito_enabled; |
31 | 29 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 } | 208 } |
211 | 209 |
212 InfoMap::~InfoMap() { | 210 InfoMap::~InfoMap() { |
213 if (quota_service_) { | 211 if (quota_service_) { |
214 BrowserThread::DeleteSoon( | 212 BrowserThread::DeleteSoon( |
215 BrowserThread::IO, FROM_HERE, quota_service_.release()); | 213 BrowserThread::IO, FROM_HERE, quota_service_.release()); |
216 } | 214 } |
217 } | 215 } |
218 | 216 |
219 } // namespace extensions | 217 } // namespace extensions |
OLD | NEW |