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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2654033009: Update component updater URLs. (Closed)
Patch Set: git pull Created 3 years, 10 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
« no previous file with comments | « no previous file | components/component_updater/component_updater_url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index e206609a0d3af63e11e3e816d93f0da9cd163ae4..388df93ee2360a19d445bd6e6b8079493652aa75 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -40,6 +40,7 @@
#include "chrome/browser/background/background_contents_service.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/component_updater/chrome_component_updater_configurator.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/devtools/devtools_window_testing.h"
#include "chrome/browser/download/download_prefs.h"
@@ -3828,9 +3829,16 @@ void ComponentUpdaterPolicyTest::OnDemandComplete(update_client::Error error) {
void ComponentUpdaterPolicyTest::BeginTest() {
cus_ = g_browser_process->component_updater();
+ const auto config = component_updater::MakeChromeComponentUpdaterConfigurator(
+ base::CommandLine::ForCurrentProcess(), nullptr,
+ g_browser_process->local_state());
+ const auto urls = config->UpdateUrl();
+ ASSERT_TRUE(urls.size());
+ const GURL url = urls.front();
+
interceptor_factory_ =
base::MakeUnique<update_client::URLRequestPostInterceptorFactory>(
- "https", "clients2.google.com",
+ url.scheme(), url.host(),
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
post_interceptor_ = interceptor_factory_->CreateInterceptor(
« no previous file with comments | « no previous file | components/component_updater/component_updater_url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698