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

Unified Diff: content/browser/tracing/tracing_ui.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/ssl/ssl_manager.cc ('k') | content/browser/web_contents/render_view_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index e7f1a7d198ba54f88edb735ad847bf6a2dd0fee8..08bab8b2f4f43be42592c953947b8d6c8dc8d338 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -124,13 +124,13 @@ class TaskProxy : public base::RefCountedThreadSafe<TaskProxy> {
: handler_(handler) {}
void LoadTraceFileCompleteProxy(string16* file_contents,
const base::FilePath& path) {
- if (handler_)
+ if (handler_.get())
handler_->LoadTraceFileComplete(file_contents, path);
delete file_contents;
}
void SaveTraceFileCompleteProxy() {
- if (handler_)
+ if (handler_.get())
handler_->SaveTraceFileComplete();
}
« no previous file with comments | « content/browser/ssl/ssl_manager.cc ('k') | content/browser/web_contents/render_view_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698