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

Side by Side Diff: content/browser/webui/web_ui_data_source_impl.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/webui/web_ui_data_source_impl.h" 5 #include "content/browser/webui/web_ui_data_source_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 version2.reset(new webui::UseVersion2); 206 version2.reset(new webui::UseVersion2);
207 207
208 webui::AppendJsonJS(&localized_strings_, &template_data); 208 webui::AppendJsonJS(&localized_strings_, &template_data);
209 callback.Run(base::RefCountedString::TakeString(&template_data)); 209 callback.Run(base::RefCountedString::TakeString(&template_data));
210 } 210 }
211 211
212 void WebUIDataSourceImpl::SendFromResourceBundle( 212 void WebUIDataSourceImpl::SendFromResourceBundle(
213 const URLDataSource::GotDataCallback& callback, int idr) { 213 const URLDataSource::GotDataCallback& callback, int idr) {
214 scoped_refptr<base::RefCountedStaticMemory> response( 214 scoped_refptr<base::RefCountedStaticMemory> response(
215 GetContentClient()->GetDataResourceBytes(idr)); 215 GetContentClient()->GetDataResourceBytes(idr));
216 callback.Run(response); 216 callback.Run(response.get());
217 } 217 }
218 218
219 } // namespace content 219 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/webui/url_data_source_impl.cc ('k') | content/browser/worker_host/worker_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698