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

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

Issue 13949011: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 (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" 9 #include "chrome/common/extensions/incognito_handler.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 process_map_.Contains((*i)->id(), process_id) && 141 process_map_.Contains((*i)->id(), process_id) &&
142 (*i)->HasAPIPermission(permission)) { 142 (*i)->HasAPIPermission(permission)) {
143 return true; 143 return true;
144 } 144 }
145 } 145 }
146 return false; 146 return false;
147 } 147 }
148 148
149 ExtensionsQuotaService* ExtensionInfoMap::GetQuotaService() { 149 ExtensionsQuotaService* ExtensionInfoMap::GetQuotaService() {
150 CheckOnValidThread(); 150 CheckOnValidThread();
151 if (!quota_service_.get()) 151 if (!quota_service_)
152 quota_service_.reset(new ExtensionsQuotaService()); 152 quota_service_.reset(new ExtensionsQuotaService());
153 return quota_service_.get(); 153 return quota_service_.get();
154 } 154 }
155 155
156 ExtensionInfoMap::~ExtensionInfoMap() { 156 ExtensionInfoMap::~ExtensionInfoMap() {
157 if (quota_service_.get()) { 157 if (quota_service_) {
158 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, 158 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE,
159 quota_service_.release()); 159 quota_service_.release());
160 } 160 }
161 } 161 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_icon_image_unittest.cc ('k') | chrome/browser/extensions/extension_info_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698