| 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_info_map.h" | 5 #include "chrome/browser/extensions/extension_info_map.h" |
| 6 | 6 |
| 7 #include "chrome/common/extensions/extension.h" | 7 #include "chrome/common/extensions/extension.h" |
| 8 #include "chrome/common/extensions/extension_set.h" | 8 #include "chrome/common/extensions/extension_set.h" |
| 9 #include "chrome/common/extensions/incognito_handler.h" | |
| 10 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
| 11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 12 #include "extensions/common/constants.h" | 11 #include "extensions/common/constants.h" |
| 12 #include "extensions/common/manifest_handlers/incognito_info.h" |
| 13 | 13 |
| 14 using content::BrowserThread; | 14 using content::BrowserThread; |
| 15 using extensions::Extension; | 15 using extensions::Extension; |
| 16 using extensions::UnloadedExtensionInfo; | 16 using extensions::UnloadedExtensionInfo; |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 void CheckOnValidThread() { | 20 void CheckOnValidThread() { |
| 21 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 21 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 22 } | 22 } |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 bool ExtensionInfoMap::IsSigninProcess(int process_id) const { | 176 bool ExtensionInfoMap::IsSigninProcess(int process_id) const { |
| 177 return process_id == signin_process_id_; | 177 return process_id == signin_process_id_; |
| 178 } | 178 } |
| 179 | 179 |
| 180 ExtensionInfoMap::~ExtensionInfoMap() { | 180 ExtensionInfoMap::~ExtensionInfoMap() { |
| 181 if (quota_service_) { | 181 if (quota_service_) { |
| 182 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, | 182 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, |
| 183 quota_service_.release()); | 183 quota_service_.release()); |
| 184 } | 184 } |
| 185 } | 185 } |
| OLD | NEW |