diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-30 18:47:13 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-30 18:47:13 +0000 |
commit | 06bdd2b628b4b76a3bd6fc8dff5b219f0950663c (patch) | |
tree | cf03da9ff8e16ff75d6a91439e4fe00499e11cf0 /chrome/browser/extensions/browser_action_apitest.cc | |
parent | e45a014f99224d1cc7a0e501c39693c6981c0355 (diff) | |
download | chromium_src-06bdd2b628b4b76a3bd6fc8dff5b219f0950663c.zip chromium_src-06bdd2b628b4b76a3bd6fc8dff5b219f0950663c.tar.gz chromium_src-06bdd2b628b4b76a3bd6fc8dff5b219f0950663c.tar.bz2 |
Remove GetExtensionService calls and replace with PKSF calls through the ExtensionSystem. Extension services were made into ProfileKeyedServices a while ago; this replaces the deprecated calls that ran directly through the Profile object.
This is about half of the total GetExtensionService calls in the codebase, but this CL is already ridiculously large.
BUG= http://code.google.com/p/chromium/issues/detail?id=104095
Review URL: https://chromiumcodereview.appspot.com/11365181
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/browser_action_apitest.cc')
-rw-r--r-- | chrome/browser/extensions/browser_action_apitest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/extensions/browser_action_apitest.cc b/chrome/browser/extensions/browser_action_apitest.cc index a476f51..f0c7582 100644 --- a/chrome/browser/extensions/browser_action_apitest.cc +++ b/chrome/browser/extensions/browser_action_apitest.cc @@ -2,12 +2,14 @@ // 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/ui/browser_tabstrip.h" // Tests that tooltips of a browser action icon can be specified using UTF8. // See http://crbug.com/25349. IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, TitleLocalizationBrowserAction) { - ExtensionService* service = browser()->profile()->GetExtensionService(); + ExtensionService* service = extensions::ExtensionSystem::Get( + browser()->profile())->extension_service(); const size_t size_before = service->extensions()->size(); FilePath extension_path(test_data_dir_.AppendASCII("browsertest") .AppendASCII("title_localized")); |