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

Unified Diff: content/child/npapi/plugin_lib.cc

Issue 22070002: Avoid wasted work in FreePluginLibraryHelper(). (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_lib.cc
===================================================================
--- content/child/npapi/plugin_lib.cc (revision 215539)
+++ content/child/npapi/plugin_lib.cc (working copy)
@@ -263,8 +263,10 @@
bool reloaded = false;
if (g_loaded_libs) {
for (size_t i = 0; i < g_loaded_libs->size(); ++i) {
- if ((*g_loaded_libs)[i]->plugin_info().path == path)
+ if ((*g_loaded_libs)[i]->plugin_info().path == path) {
reloaded = true;
+ break;
+ }
}
}
if (!reloaded)
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698