Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: chrome/browser/extensions/extension_info_map.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 11
12 using content::BrowserThread; 12 using content::BrowserThread;
13 using extensions::Extension;
13 14
14 namespace { 15 namespace {
15 16
16 void CheckOnValidThread() { 17 void CheckOnValidThread() {
17 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 18 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
18 } 19 }
19 20
20 } // namespace 21 } // namespace
21 22
22 struct ExtensionInfoMap::ExtraData { 23 struct ExtensionInfoMap::ExtraData {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 quota_service_.reset(new ExtensionsQuotaService()); 148 quota_service_.reset(new ExtensionsQuotaService());
148 return quota_service_.get(); 149 return quota_service_.get();
149 } 150 }
150 151
151 ExtensionInfoMap::~ExtensionInfoMap() { 152 ExtensionInfoMap::~ExtensionInfoMap() {
152 if (quota_service_.get()) { 153 if (quota_service_.get()) {
153 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, 154 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE,
154 quota_service_.release()); 155 quota_service_.release());
155 } 156 }
156 } 157 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_info_map.h ('k') | chrome/browser/extensions/extension_info_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698