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

Unified Diff: webkit/plugins/npapi/plugin_host.cc

Issue 11189146: Eliminate implicit conversion from scoped_refptr<T> to T* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « webkit/appcache/appcache_storage_impl.cc ('k') | webkit/plugins/npapi/plugin_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_host.cc
diff --git a/webkit/plugins/npapi/plugin_host.cc b/webkit/plugins/npapi/plugin_host.cc
index dbd405251578e6e6afa96afba27e2f17793a3150..927338386e22d5dde492f660b1c76b14ff2df3ba 100644
--- a/webkit/plugins/npapi/plugin_host.cc
+++ b/webkit/plugins/npapi/plugin_host.cc
@@ -87,14 +87,14 @@ PluginHost::PluginHost() {
PluginHost::~PluginHost() {
}
-PluginHost *PluginHost::Singleton() {
+PluginHost* PluginHost::Singleton() {
CR_DEFINE_STATIC_LOCAL(scoped_refptr<PluginHost>, singleton, ());
- if (singleton.get() == NULL) {
+ if (singleton) {
singleton = new PluginHost();
}
- DCHECK(singleton.get() != NULL);
- return singleton;
+ DCHECK(singleton);
+ return singleton.get();
}
void PluginHost::InitializeHostFuncs() {
« no previous file with comments | « webkit/appcache/appcache_storage_impl.cc ('k') | webkit/plugins/npapi/plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698