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

Unified Diff: chrome/browser/image_decoder.cc

Issue 10454044: Added support for animated/nonanimated user image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
Index: chrome/browser/image_decoder.cc
diff --git a/chrome/browser/image_decoder.cc b/chrome/browser/image_decoder.cc
index 8e3eb71045928c1e73a4697a656ecb47338701c0..cdd0c55c60e2775d4966103bf5dd6273959eebf7 100644
--- a/chrome/browser/image_decoder.cc
+++ b/chrome/browser/image_decoder.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -32,6 +32,15 @@ void ImageDecoder::Start() {
base::Bind(&ImageDecoder::DecodeImageInSandbox, this, image_data_));
}
+bool
+ImageDecoder::get_image_data(std::vector<unsigned char>* image_data) const {
+ if (image_data) {
+ image_data->assign(image_data_.begin(), image_data_.end());
+ return true;
+ }
+ return false;
+}
+
bool ImageDecoder::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(ImageDecoder, message)

Powered by Google App Engine
This is Rietveld 408576698