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

Side by Side Diff: extensions/browser/info_map.cc

Issue 216513002: Replace DCHECK(BrowserThread::CurrentlyOn) with DCHECK_CURRENTLY_ON in extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/browser/extension_message_filter.cc ('k') | extensions/browser/value_store/leveldb_value_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698