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

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

Issue 113633006: testrequest is ignored. Also added wow64 attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved wow64 to request element. Created 7 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 | 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/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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 AddItemToUpdateCheck(item, update_check_items); 760 AddItemToUpdateCheck(item, update_check_items);
761 } 761 }
762 } 762 }
763 763
764 // Sends an update request. The |update_check_items| parameter 764 // Sends an update request. The |update_check_items| parameter
765 // contains the sequence of <app> xml elements of the update check. 765 // contains the sequence of <app> xml elements of the update check.
766 void CrxUpdateService::DoUpdateCheck(const std::string& update_check_items) { 766 void CrxUpdateService::DoUpdateCheck(const std::string& update_check_items) {
767 using component_updater::BuildProtocolRequest; 767 using component_updater::BuildProtocolRequest;
768 url_fetcher_.reset(component_updater::SendProtocolRequest( 768 url_fetcher_.reset(component_updater::SendProtocolRequest(
769 config_->UpdateUrl(), 769 config_->UpdateUrl(),
770 BuildProtocolRequest(update_check_items), 770 BuildProtocolRequest(update_check_items, config_->ExtraRequestParams()),
771 MakeContextDelegate(this, new UpdateContext()), 771 MakeContextDelegate(this, new UpdateContext()),
772 config_->RequestContext())); 772 config_->RequestContext()));
773 } 773 }
774 774
775 // Called when we got a response from the update server. It consists of an xml 775 // Called when we got a response from the update server. It consists of an xml
776 // document following the omaha update scheme. 776 // document following the omaha update scheme.
777 void CrxUpdateService::OnURLFetchComplete(const net::URLFetcher* source, 777 void CrxUpdateService::OnURLFetchComplete(const net::URLFetcher* source,
778 UpdateContext* context) { 778 UpdateContext* context) {
779 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 779 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
780 if (component_updater::FetchSuccess(*source)) { 780 if (component_updater::FetchSuccess(*source)) {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 } 1092 }
1093 1093
1094 // The component update factory. Using the component updater as a singleton 1094 // The component update factory. Using the component updater as a singleton
1095 // is the job of the browser process. 1095 // is the job of the browser process.
1096 ComponentUpdateService* ComponentUpdateServiceFactory( 1096 ComponentUpdateService* ComponentUpdateServiceFactory(
1097 ComponentUpdateService::Configurator* config) { 1097 ComponentUpdateService::Configurator* config) {
1098 DCHECK(config); 1098 DCHECK(config);
1099 return new CrxUpdateService(config); 1099 return new CrxUpdateService(config);
1100 } 1100 }
1101 1101
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698