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

Side by Side Diff: chrome/browser/image_decoder.cc

Issue 55133005: Remove EnableZygote API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused |use_linux_zygote_| member variable. Created 7 years, 1 month 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 "chrome/browser/image_decoder.h" 5 #include "chrome/browser/image_decoder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/common/chrome_utility_messages.h" 9 #include "chrome/common/chrome_utility_messages.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 DCHECK(task_runner_->RunsTasksOnCurrentThread()); 53 DCHECK(task_runner_->RunsTasksOnCurrentThread());
54 if (delegate_) 54 if (delegate_)
55 delegate_->OnDecodeImageFailed(this); 55 delegate_->OnDecodeImageFailed(this);
56 } 56 }
57 57
58 void ImageDecoder::DecodeImageInSandbox( 58 void ImageDecoder::DecodeImageInSandbox(
59 const std::vector<unsigned char>& image_data) { 59 const std::vector<unsigned char>& image_data) {
60 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 60 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
61 UtilityProcessHost* utility_process_host; 61 UtilityProcessHost* utility_process_host;
62 utility_process_host = UtilityProcessHost::Create(this, task_runner_.get()); 62 utility_process_host = UtilityProcessHost::Create(this, task_runner_.get());
63 utility_process_host->EnableZygote();
64 if (image_codec_ == ROBUST_JPEG_CODEC) { 63 if (image_codec_ == ROBUST_JPEG_CODEC) {
65 utility_process_host->Send( 64 utility_process_host->Send(
66 new ChromeUtilityMsg_RobustJPEGDecodeImage(image_data)); 65 new ChromeUtilityMsg_RobustJPEGDecodeImage(image_data));
67 } else { 66 } else {
68 utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data)); 67 utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data));
69 } 68 }
70 } 69 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.cc ('k') | chrome/browser/local_discovery/service_discovery_host_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698