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

Unified Diff: content/browser/gpu/shader_disk_cache.cc

Issue 16256018: Update content/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incorrectly modified code Created 7 years, 7 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/browser/download/download_request_handle.cc ('k') | content/browser/plugin_loader_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/shader_disk_cache.cc
diff --git a/content/browser/gpu/shader_disk_cache.cc b/content/browser/gpu/shader_disk_cache.cc
index 48a76c55a6c177cecec73fd5df2389c43b0a652a..3e07572e9590dd9544b6a7e0ba08e125edc6bf3a 100644
--- a/content/browser/gpu/shader_disk_cache.cc
+++ b/content/browser/gpu/shader_disk_cache.cc
@@ -152,7 +152,7 @@ ShaderDiskCacheEntry::~ShaderDiskCacheEntry() {
void ShaderDiskCacheEntry::Cache() {
DCHECK(CalledOnValidThread());
- if (!cache_)
+ if (!cache_.get())
return;
int rv = cache_->backend()->OpenEntry(
@@ -165,7 +165,7 @@ void ShaderDiskCacheEntry::Cache() {
void ShaderDiskCacheEntry::OnOpComplete(int rv) {
DCHECK(CalledOnValidThread());
- if (!cache_)
+ if (!cache_.get())
return;
do {
@@ -248,14 +248,14 @@ ShaderDiskReadHelper::ShaderDiskReadHelper(
void ShaderDiskReadHelper::LoadCache() {
DCHECK(CalledOnValidThread());
- if (!cache_)
+ if (!cache_.get())
return;
OnOpComplete(net::OK);
}
void ShaderDiskReadHelper::OnOpComplete(int rv) {
DCHECK(CalledOnValidThread());
- if (!cache_)
+ if (!cache_.get())
return;
do {
« no previous file with comments | « content/browser/download/download_request_handle.cc ('k') | content/browser/plugin_loader_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698