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

Unified Diff: content/shell/shell.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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 | « content/renderer/webplugin_delegate_proxy.cc ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell.cc
diff --git a/content/shell/shell.cc b/content/shell/shell.cc
index 21b31362ab8d1abce8d6cde8a2e8a1ef9cc2b109..521c9c50f66306de787a9321ca856d68385ff4b2 100644
--- a/content/shell/shell.cc
+++ b/content/shell/shell.cc
@@ -208,7 +208,7 @@ void Shell::CloseDevTools() {
}
gfx::NativeView Shell::GetContentView() {
- if (!web_contents_.get())
+ if (!web_contents_)
return NULL;
return web_contents_->GetView()->GetNativeView();
}
@@ -281,7 +281,7 @@ void Shell::DidNavigateMainFramePostCommit(WebContents* web_contents) {
}
JavaScriptDialogManager* Shell::GetJavaScriptDialogManager() {
- if (!dialog_manager_.get())
+ if (!dialog_manager_)
dialog_manager_.reset(new ShellJavaScriptDialogManager());
return dialog_manager_.get();
}
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.cc ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698