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

Unified Diff: chrome/browser/sync/sync_setup_wizard.cc

Issue 288005: First fix to minimize copying of image data. (Closed)
Patch Set: Modify gyp Created 11 years, 2 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
Index: chrome/browser/sync/sync_setup_wizard.cc
diff --git a/chrome/browser/sync/sync_setup_wizard.cc b/chrome/browser/sync/sync_setup_wizard.cc
index 7d00ab9f939a383c2909e2290d8184a6db534710..ec39995b8091b490334494506ada39fc03a92df9 100644
--- a/chrome/browser/sync/sync_setup_wizard.cc
+++ b/chrome/browser/sync/sync_setup_wizard.cc
@@ -42,9 +42,10 @@ void SyncResourcesSource::StartDataRequest(const std::string& path_raw,
int request_id) {
scoped_refptr<RefCountedBytes> html_bytes(new RefCountedBytes);
if (path_raw == chrome::kSyncThrobberPath) {
- ResourceBundle::GetSharedInstance().LoadImageResourceBytes(IDR_THROBBER,
- &html_bytes->data);
- SendResponse(request_id, html_bytes);
+ scoped_refptr<RefCountedMemory> throbber(
+ ResourceBundle::GetSharedInstance().LoadImageResourceBytes(
+ IDR_THROBBER));
+ SendResponse(request_id, throbber);
return;
}

Powered by Google App Engine
This is Rietveld 408576698