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

Side by Side Diff: content/browser/plugin_service.cc

Issue 8515021: Move PluginPrefs to use PluginService instead of PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: plugin_list() Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/plugin_prefs_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/plugin_service.h" 5 #include "content/browser/plugin_service.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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 637
638 void PluginService::RemoveExtraPluginPath(const FilePath& path) { 638 void PluginService::RemoveExtraPluginPath(const FilePath& path) {
639 plugin_list()->RemoveExtraPluginPath(path); 639 plugin_list()->RemoveExtraPluginPath(path);
640 } 640 }
641 641
642 void PluginService::UnregisterInternalPlugin(const FilePath& path) { 642 void PluginService::UnregisterInternalPlugin(const FilePath& path) {
643 plugin_list()->UnregisterInternalPlugin(path); 643 plugin_list()->UnregisterInternalPlugin(path);
644 } 644 }
645 645
646 webkit::npapi::PluginList* PluginService::plugin_list() { 646 webkit::npapi::PluginList* PluginService::plugin_list() {
647 return webkit::npapi::PluginList::Singleton(); 647 return plugin_list_;
jam 2011/11/10 23:57:40 nit: please move this function impl to the header
Robert Sesek 2011/11/11 01:19:19 Will do this in a follow-up tomorrow. Afk and want
Robert Sesek 2011/11/11 16:01:18 Done.
648 } 648 }
649 649
650 void PluginService::SetPluginListForTesting( 650 void PluginService::SetPluginListForTesting(
651 webkit::npapi::PluginList* plugin_list) { 651 webkit::npapi::PluginList* plugin_list) {
652 plugin_list_ = plugin_list; 652 plugin_list_ = plugin_list;
653 } 653 }
654 654
655 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) { 655 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) {
656 plugin_list()->RegisterInternalPlugin(info); 656 plugin_list()->RegisterInternalPlugin(info);
657 } 657 }
658 658
659 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) { 659 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) {
660 return plugin_list()->GetPluginGroupName(plugin_name); 660 return plugin_list()->GetPluginGroupName(plugin_name);
661 } 661 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_prefs_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698