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

Side by Side Diff: chrome/browser/extensions/startup_helper.cc

Issue 18119009: Make utility process run in-process when running in single-process mode. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: undo unnecessary changes Created 7 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 | 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/extensions/startup_helper.h" 5 #include "chrome/browser/extensions/startup_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 run_loop_->Quit(); 132 run_loop_->Quit();
133 } 133 }
134 134
135 void StartOnFileThread() { 135 void StartOnFileThread() {
136 CHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 136 CHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
137 scoped_refptr<base::MessageLoopProxy> file_thread_proxy = 137 scoped_refptr<base::MessageLoopProxy> file_thread_proxy =
138 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE); 138 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE);
139 139
140 scoped_refptr<SandboxedUnpacker> unpacker( 140 scoped_refptr<SandboxedUnpacker> unpacker(
141 new SandboxedUnpacker(crx_file_, 141 new SandboxedUnpacker(crx_file_,
142 true /* out of process */,
143 Manifest::INTERNAL, 142 Manifest::INTERNAL,
144 0, /* no special creation flags */ 143 0, /* no special creation flags */
145 temp_dir_, 144 temp_dir_,
146 file_thread_proxy.get(), 145 file_thread_proxy.get(),
147 this)); 146 this));
148 unpacker->Start(); 147 unpacker->Start();
149 } 148 }
150 149
151 // The file being validated. 150 // The file being validated.
152 const base::FilePath& crx_file_; 151 const base::FilePath& crx_file_;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 334 }
336 return id; 335 return id;
337 } 336 }
338 337
339 StartupHelper::~StartupHelper() { 338 StartupHelper::~StartupHelper() {
340 if (pack_job_.get()) 339 if (pack_job_.get())
341 pack_job_->ClearClient(); 340 pack_job_->ClearClient();
342 } 341 }
343 342
344 } // namespace extensions 343 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/sandboxed_unpacker_unittest.cc ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698