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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 503083003: Remove implicit conversions from scoped_refptr to T* in content/renderer/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | content/renderer/child_frame_compositing_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index a886275fbc77986fa826dcc0494c9291f72383f2..4bd18307617782f42cb7ec55573853cb7097de1c 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -149,7 +149,7 @@ void BrowserPlugin::ParseAllowTransparencyAttribute() {
bool opaque = !GetAllowTransparencyAttribute();
- if (compositing_helper_)
+ if (compositing_helper_.get())
compositing_helper_->SetContentsOpaque(opaque);
browser_plugin_manager()->Send(new BrowserPluginHostMsg_SetContentsOpaque(
@@ -163,7 +163,7 @@ void BrowserPlugin::Attach() {
attached_ = false;
guest_crashed_ = false;
EnableCompositing(false);
- if (compositing_helper_) {
+ if (compositing_helper_.get()) {
compositing_helper_->OnContainerDestroy();
compositing_helper_ = NULL;
}
@@ -233,7 +233,7 @@ void BrowserPlugin::OnCopyFromCompositingSurface(int browser_plugin_instance_id,
int request_id,
gfx::Rect source_rect,
gfx::Size dest_size) {
- if (!compositing_helper_) {
+ if (!compositing_helper_.get()) {
browser_plugin_manager()->Send(
new BrowserPluginHostMsg_CopyFromCompositingSurfaceAck(
render_view_routing_id_,
@@ -405,7 +405,7 @@ bool BrowserPlugin::initialize(WebPluginContainer* container) {
}
void BrowserPlugin::EnableCompositing(bool enable) {
- bool enabled = !!compositing_helper_;
+ bool enabled = !!compositing_helper_.get();
if (enabled == enable)
return;
« no previous file with comments | « no previous file | content/renderer/child_frame_compositing_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698