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

Unified Diff: content/gpu/gpu_main.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/gpu/gpu_info_collector.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 270a52b7508a06f82c8cc97cd3fff72c2937315b..98f1e9e30c468ecc840e08af71987c4109283cdb 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -241,10 +241,10 @@ int GpuMain(const MainFunctionParams& parameters) {
#endif
if (do_init_sandbox) {
- if (watchdog_thread.get())
+ if (watchdog_thread)
watchdog_thread->Stop();
gpu_info.sandboxed = LinuxSandbox::InitializeSandbox();
- if (watchdog_thread.get())
+ if (watchdog_thread)
watchdog_thread->Start();
}
}
@@ -290,7 +290,7 @@ namespace {
void CreateDummyGlContext() {
scoped_refptr<gfx::GLSurface> surface(
gfx::GLSurface::CreateOffscreenGLSurface(false, gfx::Size(1, 1)));
- if (!surface.get()) {
+ if (!surface) {
VLOG(1) << "gfx::GLSurface::CreateOffscreenGLSurface failed";
return;
}
@@ -301,7 +301,7 @@ void CreateDummyGlContext() {
gfx::GLContext::CreateGLContext(NULL,
surface,
gfx::PreferDiscreteGpu));
- if (!context.get()) {
+ if (!context) {
VLOG(1) << "gfx::GLContext::CreateGLContext failed";
return;
}
« no previous file with comments | « content/gpu/gpu_info_collector.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698