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

Unified Diff: content/renderer/pepper/pepper_plugin_registry.cc

Issue 2119283002: Use container::back() and container::pop_back() for content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: content/renderer/pepper/pepper_plugin_registry.cc
diff --git a/content/renderer/pepper/pepper_plugin_registry.cc b/content/renderer/pepper/pepper_plugin_registry.cc
index 51c49ac002ff9e46f2e2fa206624b689b4dc38d2..e90972f637a359fffabbba244e272dfee47693e6 100644
--- a/content/renderer/pepper/pepper_plugin_registry.cc
+++ b/content/renderer/pepper/pepper_plugin_registry.cc
@@ -39,10 +39,10 @@ const PepperPluginInfo* PepperPluginRegistry::GetInfoForPlugin(
// PluginService.
PepperPluginInfo plugin;
if (!MakePepperPluginInfo(info, &plugin))
- return NULL;
+ return nullptr;
plugin_list_.push_back(plugin);
- return &plugin_list_[plugin_list_.size() - 1];
+ return &plugin_list_.back();
}
PluginModule* PepperPluginRegistry::GetLiveModule(const base::FilePath& path) {

Powered by Google App Engine
This is Rietveld 408576698