Commit 3daa4494 authored by Justin DeWitt's avatar Justin DeWitt Committed by Commit Bot

[EoS] Allow the internals page to work with all variants

Previously the internals overrides only worked for ENABLED variant.

Bug: NONE
Change-Id: Ia0abff7a164318ccb9e06f89d5566e3d68f503fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700471Reviewed-by: default avatarCathy Li <chili@chromium.org>
Commit-Queue: Justin DeWitt <dewittj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#677109}
parent 606a77bf
...@@ -57,7 +57,7 @@ void ExploreSitesInternalsPageHandler::GetProperties( ...@@ -57,7 +57,7 @@ void ExploreSitesInternalsPageHandler::GetProperties(
void ExploreSitesInternalsPageHandler::ClearCachedExploreSitesCatalog( void ExploreSitesInternalsPageHandler::ClearCachedExploreSitesCatalog(
ClearCachedExploreSitesCatalogCallback callback) { ClearCachedExploreSitesCatalogCallback callback) {
if (ExploreSitesVariation::ENABLED != GetExploreSitesVariation()) { if (ExploreSitesVariation::DISABLED == GetExploreSitesVariation()) {
std::move(callback).Run(false); std::move(callback).Run(false);
return; return;
} }
...@@ -77,7 +77,7 @@ void ExploreSitesInternalsPageHandler::ForceNetworkRequest( ...@@ -77,7 +77,7 @@ void ExploreSitesInternalsPageHandler::ForceNetworkRequest(
void ExploreSitesInternalsPageHandler::OverrideCountryCode( void ExploreSitesInternalsPageHandler::OverrideCountryCode(
const std::string& country_code, const std::string& country_code,
OverrideCountryCodeCallback callback) { OverrideCountryCodeCallback callback) {
if (ExploreSitesVariation::ENABLED != GetExploreSitesVariation()) { if (ExploreSitesVariation::DISABLED == GetExploreSitesVariation()) {
std::move(callback).Run(false); std::move(callback).Run(false);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment