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

Unified Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system.cc b/chrome/browser/extensions/extension_system_impl.cc
similarity index 94%
rename from chrome/browser/extensions/extension_system.cc
rename to chrome/browser/extensions/extension_system_impl.cc
index f5966bcbe5d3e47f291021543f7dcb0edb925e0e..6150cd2ce1841f2973103394f4f9e7cfaae4d882 100644
--- a/chrome/browser/extensions/extension_system.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -1,8 +1,8 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/extension_system.h"
+#include "chrome/browser/extensions/extension_system_impl.h"
#include "base/base_switches.h"
#include "base/bind.h"
@@ -70,30 +70,6 @@ using content::BrowserThread;
namespace extensions {
//
-// ExtensionSystem
-//
-
-ExtensionSystem::ExtensionSystem() {
- // Only set if it hasn't already been set (e.g. by a test).
- if (GetCurrentChannel() == GetDefaultChannel())
- SetCurrentChannel(chrome::VersionInfo::GetChannel());
-}
-
-ExtensionSystem::~ExtensionSystem() {
-}
-
-// static
-ExtensionSystem* ExtensionSystem::Get(Profile* profile) {
- return ExtensionSystemFactory::GetForProfile(profile);
-}
-
-// static
-ExtensionSystem* ExtensionSystem::GetForBrowserContext(
- content::BrowserContext* profile) {
- return ExtensionSystemFactory::GetForProfile(static_cast<Profile*>(profile));
-}
-
-//
// ExtensionSystemImpl::Shared
//
@@ -333,7 +309,7 @@ InstallVerifier* ExtensionSystemImpl::Shared::install_verifier() {
ExtensionSystemImpl::ExtensionSystemImpl(Profile* profile)
: profile_(profile) {
- shared_ = ExtensionSystemSharedFactory::GetForProfile(profile);
+ shared_ = ExtensionSystemSharedFactory::GetForBrowserContext(profile);
if (profile->IsOffTheRecord()) {
process_manager_.reset(ProcessManager::Create(profile));
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.h ('k') | chrome/browser/extensions/extension_test_notification_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698