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

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

Issue 9977021: Add ExtensionSytem::Get(Profile*) as a wrapper around (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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_system.h" 5 #include "chrome/browser/extensions/extension_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/string_tokenizer.h" 10 #include "base/string_tokenizer.h"
(...skipping 28 matching lines...) Expand all
39 // 39 //
40 // ExtensionSystem 40 // ExtensionSystem
41 // 41 //
42 42
43 ExtensionSystem::ExtensionSystem() { 43 ExtensionSystem::ExtensionSystem() {
44 } 44 }
45 45
46 ExtensionSystem::~ExtensionSystem() { 46 ExtensionSystem::~ExtensionSystem() {
47 } 47 }
48 48
49 // static
50 ExtensionSystem* ExtensionSystem::Get(Profile* profile) {
51 return ExtensionSystemFactory::GetForProfile(profile);
52 }
53
49 // 54 //
50 // ExtensionSystemImpl::Shared 55 // ExtensionSystemImpl::Shared
51 // 56 //
52 57
53 ExtensionSystemImpl::Shared::Shared(Profile* profile) 58 ExtensionSystemImpl::Shared::Shared(Profile* profile)
54 : profile_(profile) { 59 : profile_(profile) {
55 } 60 }
56 61
57 ExtensionSystemImpl::Shared::~Shared() { 62 ExtensionSystemImpl::Shared::~Shared() {
58 } 63 }
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 287 }
283 288
284 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 289 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
285 const std::string& extension_id, 290 const std::string& extension_id,
286 const extension_misc::UnloadedExtensionReason reason) { 291 const extension_misc::UnloadedExtensionReason reason) {
287 BrowserThread::PostTask( 292 BrowserThread::PostTask(
288 BrowserThread::IO, FROM_HERE, 293 BrowserThread::IO, FROM_HERE,
289 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 294 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
290 extension_id, reason)); 295 extension_id, reason));
291 } 296 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698