Query Tiles: Add a debug switch to immediately launch background task.

This CL adds a debug switch for manually testing to instantly
launch the background task. Also move the main feature flag to
components/query_tiles.

Bug: 1076170
Change-Id: I7b0a112e13043a41ba6a36c731d5f3883382af99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2172204
Commit-Queue: Xing Liu <[email protected]>
Reviewed-by: Shakti Sahu <[email protected]>
Reviewed-by: Hesen Zhang <[email protected]>
Reviewed-by: Min Qin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#764108}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index e08e7b7..23079a6 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1822,6 +1822,7 @@
     {flag_descriptions::kWebOtpBackendUserConsent, switches::kWebOtpBackend,
      switches::kWebOtpBackendUserConsent},
 };
+
 const FeatureEntry::Choice kQueryTilesCountryChoices[] = {
     {flags_ui::kGenericExperimentChoiceDefault, "", ""},
     {flag_descriptions::kQueryTilesCountryCodeUS,
@@ -1835,6 +1836,7 @@
     {flag_descriptions::kQueryTilesCountryCodeIndonesia,
      upboarding::switches::kQueryTilesCountryCode, "ID"},
 };
+
 #endif  // defined(OS_ANDROID)
 
 // The choices for --enable-experimental-cookie-features. This really should
@@ -2786,10 +2788,13 @@
      FEATURE_VALUE_TYPE(offline_pages::kOnTheFlyMhtmlHashComputationFeature)},
     {"query-tiles", flag_descriptions::kQueryTilesName,
      flag_descriptions::kQueryTilesDescription, kOsAndroid,
-     FEATURE_VALUE_TYPE(chrome::android::kQueryTiles)},
+     FEATURE_VALUE_TYPE(upboarding::features::kQueryTiles)},
     {"query-tiles-country-code", flag_descriptions::kQueryTilesCountryCode,
      flag_descriptions::kQueryTilesCountryCodeDescription, kOsAndroid,
      MULTI_VALUE_TYPE(kQueryTilesCountryChoices)},
+    {"query-tiles-instant-fetch", flag_descriptions::kQueryTilesInstantFetch,
+     flag_descriptions::kQueryTilesInstantFetchDescription, kOsAndroid,
+     SINGLE_VALUE_TYPE(upboarding::switches::kQueryTilesInstantBackgroundTask)},
     {"android-picture-in-picture-api",
      flag_descriptions::kAndroidPictureInPictureAPIName,
      flag_descriptions::kAndroidPictureInPictureAPIDescription, kOsAndroid,