summaryrefslogtreecommitdiffstats
path: root/content/utility
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 18:03:26 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 18:03:26 +0000
commit4dd01a042091f1a57f9419824382121e4e7c8a49 (patch)
treefa701e3e30670fb992c418c4cd707514980d8fd5 /content/utility
parent939fa8a1f86cc1e65c3aa7563473ec39630ccbe2 (diff)
downloadchromium_src-4dd01a042091f1a57f9419824382121e4e7c8a49.zip
chromium_src-4dd01a042091f1a57f9419824382121e4e7c8a49.tar.gz
chromium_src-4dd01a042091f1a57f9419824382121e4e7c8a49.tar.bz2
Move |requires_authorization| flag and |update_url| for plug-ins out of webkit::npapi::PluginGroup.
It's now in PluginInstaller. BUG=none TEST=nope Review URL: http://codereview.chromium.org/9536013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/utility')
-rw-r--r--content/utility/utility_thread_impl.cc21
1 files changed, 9 insertions, 12 deletions
diff --git a/content/utility/utility_thread_impl.cc b/content/utility/utility_thread_impl.cc
index ccd3f7d..f1f7cc8 100644
--- a/content/utility/utility_thread_impl.cc
+++ b/content/utility/utility_thread_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -143,19 +143,16 @@ void UtilityThreadImpl::OnLoadPlugins(
}
#endif
+ ScopedVector<webkit::npapi::PluginGroup> plugin_groups;
+ // TODO(bauerb): If we restart loading plug-ins, we might mess up the logic in
+ // PluginList::ShouldLoadPlugin due to missing the previously loaded plug-ins
+ // in |plugin_groups|.
for (size_t i = 0; i < plugin_paths.size(); ++i) {
- ScopedVector<webkit::npapi::PluginGroup> plugin_groups;
- plugin_list->LoadPlugin(plugin_paths[i], &plugin_groups);
-
- if (plugin_groups.empty()) {
+ webkit::WebPluginInfo plugin;
+ if (!plugin_list->LoadPlugin(plugin_paths[i], &plugin_groups, &plugin))
Send(new UtilityHostMsg_LoadPluginFailed(i, plugin_paths[i]));
- continue;
- }
-
- const webkit::npapi::PluginGroup* group = plugin_groups[0];
- DCHECK_EQ(group->web_plugin_infos().size(), 1u);
-
- Send(new UtilityHostMsg_LoadedPlugin(i, group->web_plugin_infos().front()));
+ else
+ Send(new UtilityHostMsg_LoadedPlugin(i, plugin));
}
ReleaseProcessIfNeeded();