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

Unified Diff: chrome/browser/component_updater/test/component_updater_service_unittest.cc

Issue 292203002: Define and implement an interface for on-demand component updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/test/component_updater_service_unittest.cc
diff --git a/chrome/browser/component_updater/test/component_updater_service_unittest.cc b/chrome/browser/component_updater/test/component_updater_service_unittest.cc
index b58905bb52641cb7a45a8cf10664a35ba904e6a4..520903551d7cc36b47b5f6656eaf55a9253ea36e 100644
--- a/chrome/browser/component_updater/test/component_updater_service_unittest.cc
+++ b/chrome/browser/component_updater/test/component_updater_service_unittest.cc
@@ -247,7 +247,7 @@ void ComponentUpdaterTest::RunThreadsUntilIdle() {
ComponentUpdateService::Status OnDemandTester::OnDemand(
ComponentUpdateService* cus,
const std::string& component_id) {
- return cus->OnDemandUpdate(component_id);
+ return cus->GetOnDemandUpdater().OnDemandUpdate(component_id);
}
// Verify that our test fixture work and the component updater can
@@ -1296,7 +1296,8 @@ content::ResourceThrottle* RequestTestResourceThrottle(
&context);
content::ResourceThrottle* rt =
- cus->GetOnDemandResourceThrottle(&url_request, crx_id);
+ cus->GetOnDemandUpdater().GetOnDemandResourceThrottle(&url_request,
+ crx_id);
rt->set_controller_for_testing(controller);
controller->SetThrottle(rt);
return rt;

Powered by Google App Engine
This is Rietveld 408576698