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

Side by Side Diff: extensions/browser/sandboxed_unpacker.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 "extensions/browser/sandboxed_unpacker.h" 5 #include "extensions/browser/sandboxed_unpacker.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 IPC::Message pickle(file_str.data(), file_str.size()); 205 IPC::Message pickle(file_str.data(), file_str.size());
206 base::PickleIterator iter(pickle); 206 base::PickleIterator iter(pickle);
207 return IPC::ReadParam(&pickle, &iter, catalogs); 207 return IPC::ReadParam(&pickle, &iter, catalogs);
208 } 208 }
209 209
210 } // namespace 210 } // namespace
211 211
212 SandboxedUnpackerClient::SandboxedUnpackerClient() 212 SandboxedUnpackerClient::SandboxedUnpackerClient()
213 : RefCountedDeleteOnMessageLoop<SandboxedUnpackerClient>( 213 : RefCountedDeleteOnMessageLoop<SandboxedUnpackerClient>(
214 content::BrowserThread::GetMessageLoopProxyForThread( 214 content::BrowserThread::GetTaskRunnerForThread(
215 content::BrowserThread::UI)) { 215 content::BrowserThread::UI)) {
216 DCHECK_CURRENTLY_ON(BrowserThread::UI); 216 DCHECK_CURRENTLY_ON(BrowserThread::UI);
217 } 217 }
218 218
219 SandboxedUnpacker::SandboxedUnpacker( 219 SandboxedUnpacker::SandboxedUnpacker(
220 Manifest::Location location, 220 Manifest::Location location,
221 int creation_flags, 221 int creation_flags,
222 const base::FilePath& extensions_dir, 222 const base::FilePath& extensions_dir,
223 const scoped_refptr<base::SequencedTaskRunner>& unpacker_io_task_runner, 223 const scoped_refptr<base::SequencedTaskRunner>& unpacker_io_task_runner,
224 SandboxedUnpackerClient* client) 224 SandboxedUnpackerClient* client)
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 925
926 SandboxedUnpacker::UtilityHostWrapper::~UtilityHostWrapper() { 926 SandboxedUnpacker::UtilityHostWrapper::~UtilityHostWrapper() {
927 DCHECK_CURRENTLY_ON(BrowserThread::IO); 927 DCHECK_CURRENTLY_ON(BrowserThread::IO);
928 if (utility_host_) { 928 if (utility_host_) {
929 utility_host_->EndBatchMode(); 929 utility_host_->EndBatchMode();
930 utility_host_.reset(); 930 utility_host_.reset();
931 } 931 }
932 } 932 }
933 933
934 } // namespace extensions 934 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/serial/serial_service_factory.cc ('k') | extensions/browser/updater/extension_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698