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

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: 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
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 if (plugin_list_)
648 return plugin_list_;
647 return webkit::npapi::PluginList::Singleton(); 649 return webkit::npapi::PluginList::Singleton();
648 } 650 }
649 651
650 void PluginService::SetPluginListForTesting( 652 void PluginService::SetPluginListForTesting(
651 webkit::npapi::PluginList* plugin_list) { 653 webkit::npapi::PluginList* plugin_list) {
652 plugin_list_ = plugin_list; 654 plugin_list_ = plugin_list;
653 } 655 }
654 656
655 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) { 657 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) {
656 plugin_list()->RegisterInternalPlugin(info); 658 plugin_list()->RegisterInternalPlugin(info);
657 } 659 }
658 660
659 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) { 661 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) {
660 return plugin_list()->GetPluginGroupName(plugin_name); 662 return plugin_list()->GetPluginGroupName(plugin_name);
661 } 663 }
OLDNEW
« chrome/browser/plugin_prefs_unittest.cc ('K') | « chrome/browser/plugin_prefs_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698