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

Unified Diff: components/image_fetcher/content/image_decoder.cc

Issue 2763103002: Move ImageDecoder to components/image_fetcher/content (Closed)
Patch Set: Rebased. Created 3 years, 9 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: components/image_fetcher/content/image_decoder.cc
diff --git a/chrome/browser/image_decoder.cc b/components/image_fetcher/content/image_decoder.cc
similarity index 96%
rename from chrome/browser/image_decoder.cc
rename to components/image_fetcher/content/image_decoder.cc
index ee9dd6cf6ce336d565a880b53e4fd0697e669dc9..d9689ee807b4f166cca9f919e9d21e106f2de7fb 100644
--- a/chrome/browser/image_decoder.cc
+++ b/components/image_fetcher/content/image_decoder.cc
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/image_decoder.h"
+#include "components/image_fetcher/content/image_decoder.h"
+#include <memory>
#include <utility>
#include "base/bind.h"
@@ -44,7 +45,8 @@ void BindToBrowserConnector(service_manager::mojom::ConnectorRequest request) {
return;
}
- content::ServiceManagerConnection::GetForProcess()->GetConnector()
+ content::ServiceManagerConnection::GetForProcess()
+ ->GetConnector()
->BindConnectorRequest(std::move(request));
}
@@ -196,9 +198,8 @@ void ImageDecoder::CancelImpl(ImageRequest* image_request) {
}
}
-void ImageDecoder::OnDecodeImageSucceeded(
- const SkBitmap& decoded_image,
- int request_id) {
+void ImageDecoder::OnDecodeImageSucceeded(const SkBitmap& decoded_image,
+ int request_id) {
ImageRequest* image_request;
{
base::AutoLock lock(map_lock_);
« no previous file with comments | « components/image_fetcher/content/image_decoder.h ('k') | components/image_fetcher/content/image_decoder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698