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

Side by Side Diff: chrome/browser/component_updater/component_updater_service.cc

Issue 8922011: Convert calls to the utility process in service code to use the zygote on Linux. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/image_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/component_updater/component_updater_service.h" 5 #include "chrome/browser/component_updater/component_updater_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 UpdateManifest manifest; 587 UpdateManifest manifest;
588 if (!manifest.Parse(xml)) { 588 if (!manifest.Parse(xml)) {
589 CrxUpdateService::OnParseUpdateManifestFailed(manifest.errors()); 589 CrxUpdateService::OnParseUpdateManifestFailed(manifest.errors());
590 } else { 590 } else {
591 CrxUpdateService::OnParseUpdateManifestSucceeded(manifest.results()); 591 CrxUpdateService::OnParseUpdateManifestSucceeded(manifest.results());
592 } 592 }
593 } else { 593 } else {
594 UtilityProcessHost* host = 594 UtilityProcessHost* host =
595 new UtilityProcessHost(new ManifestParserBridge(this), 595 new UtilityProcessHost(new ManifestParserBridge(this),
596 BrowserThread::UI); 596 BrowserThread::UI);
597 host->set_use_linux_zygote(true);
597 host->Send(new ChromeUtilityMsg_ParseUpdateManifest(xml)); 598 host->Send(new ChromeUtilityMsg_ParseUpdateManifest(xml));
598 } 599 }
599 } 600 }
600 601
601 // A valid Omaha update check has arrived, from only the list of components that 602 // A valid Omaha update check has arrived, from only the list of components that
602 // we are currently upgrading we check for a match in which the server side 603 // we are currently upgrading we check for a match in which the server side
603 // version is newer, if so we queue them for an upgrade. The next time we call 604 // version is newer, if so we queue them for an upgrade. The next time we call
604 // ProcessPendingItems() one of them will be drafted for the upgrade process. 605 // ProcessPendingItems() one of them will be drafted for the upgrade process.
605 void CrxUpdateService::OnParseUpdateManifestSucceeded( 606 void CrxUpdateService::OnParseUpdateManifestSucceeded(
606 const UpdateManifest::Results& results) { 607 const UpdateManifest::Results& results) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 ScheduleNextRun(false); 754 ScheduleNextRun(false);
754 } 755 }
755 756
756 // The component update factory. Using the component updater as a singleton 757 // The component update factory. Using the component updater as a singleton
757 // is the job of the browser process. 758 // is the job of the browser process.
758 ComponentUpdateService* ComponentUpdateServiceFactory( 759 ComponentUpdateService* ComponentUpdateServiceFactory(
759 ComponentUpdateService::Configurator* config) { 760 ComponentUpdateService::Configurator* config) {
760 DCHECK(config); 761 DCHECK(config);
761 return new CrxUpdateService(config); 762 return new CrxUpdateService(config);
762 } 763 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698