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

Unified Diff: chrome/browser/extensions/test_extension_system.h

Issue 9583036: Revert 124817 - Take extensions out of Profile into a profile-keyed service, ExtensionSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/test_extension_system.h
===================================================================
--- chrome/browser/extensions/test_extension_system.h (revision 124830)
+++ chrome/browser/extensions/test_extension_system.h (working copy)
@@ -1,57 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
-#define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
-#pragma once
-
-#include "chrome/browser/extensions/extension_system.h"
-
-class CommandLine;
-class FilePath;
-
-// Test ExtensionSystem, for use with TestingProfile.
-class TestExtensionSystem : public ExtensionSystem {
- public:
- explicit TestExtensionSystem(Profile* profile);
- virtual ~TestExtensionSystem();
-
- // ProfileKeyedService implementation.
- virtual void Shutdown() OVERRIDE;
-
- // Creates an ExtensionService initialized with the testing profile and
- // returns it.
- ExtensionService* CreateExtensionService(const CommandLine* command_line,
- const FilePath& install_directory,
- bool autoupdate_enabled);
-
- // Creates an ExtensionProcessManager. If not invoked, the
- // ExtensionProcessManager is NULL.
- void CreateExtensionProcessManager();
-
- virtual void Init(bool extensions_enabled) OVERRIDE {}
- virtual ExtensionService* extension_service() OVERRIDE;
- void SetExtensionService(ExtensionService* service);
- virtual UserScriptMaster* user_script_master() OVERRIDE;
- virtual ExtensionDevToolsManager* devtools_manager() OVERRIDE;
- virtual ExtensionProcessManager* process_manager() OVERRIDE;
- virtual ExtensionInfoMap* info_map() OVERRIDE;
- virtual ExtensionMessageService* message_service() OVERRIDE;
- virtual ExtensionEventRouter* event_router() OVERRIDE;
-
- // Factory method for tests to use with SetTestingProfile.
- static ProfileKeyedBase* Build(Profile* profile);
-
- private:
- Profile* profile_;
-
- scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
- // The Extension Preferences. Only created if CreateExtensionService is
- // invoked.
- scoped_ptr<ExtensionPrefs> extension_prefs_;
- scoped_ptr<ExtensionService> extension_service_;
- scoped_ptr<ExtensionProcessManager> extension_process_manager_;
-};
-
-#endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
« no previous file with comments | « chrome/browser/extensions/extension_updater_unittest.cc ('k') | chrome/browser/extensions/test_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698