123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
- From cf98027e6f671068371d33e89db26d8bfcd6caff Mon Sep 17 00:00:00 2001
- From: Jan Engelhardt <jengelh@inai.de>
- Date: Mon, 3 Nov 2014 10:52:56 +0100
- Subject: [PATCH 64/66] all: add trk: prefixes to possibly evil connections
- Prefix URLs to Google services with trk: so that whenever something
- tries to load them, the developer will be informed via printf and
- dialog about this infraction.
- If you see such dialog, we know that (a) either the URL needs to be
- whitelisted, or (b) the feature that triggered it needs to be disabled
- by default.
- ---
- build/mac/tweak_info_plist.py | 2 +-
- .../chromeos/customization/customization_document.cc | 2 +-
- .../extensions/file_manager/private_api_drive.cc | 2 +-
- .../extensions/file_manager/private_api_misc.cc | 2 +-
- .../extensions/file_manager/private_api_strings.cc | 12 ++++++------
- .../api/cryptotoken_private/cryptotoken_private_api.cc | 4 ++--
- chrome/browser/extensions/install_signer.cc | 2 +-
- chrome/browser/media/media_url_constants.cc | 2 +-
- chrome/browser/nacl_host/nacl_infobar_delegate.cc | 2 +-
- chrome/browser/net/predictor.cc | 2 +-
- chrome/browser/profiles/profile_avatar_downloader.cc | 2 +-
- .../chromeos/chromevox/chromevox/background/prefs.js | 4 ++--
- .../resources/default_apps/external_extensions.json | 6 +++---
- .../safe_browsing/client_side_detection_service.cc | 4 ++--
- chrome/browser/safe_browsing/download_feedback.cc | 2 +-
- .../browser/safe_search_api/safe_search_url_checker.cc | 2 +-
- .../spellchecker/spellcheck_hunspell_dictionary.cc | 2 +-
- .../browser/supervised_user/supervised_user_service.cc | 2 +-
- chrome/browser/tracing/crash_service_uploader.cc | 2 +-
- .../browser/ui/views/outdated_upgrade_bubble_view.cc | 2 +-
- chrome/browser/ui/webui/ntp/ntp_resource_cache.cc | 8 ++++----
- chrome/common/extensions/chrome_extensions_client.cc | 4 ++--
- chrome/common/extensions/extension_constants.cc | 2 +-
- chrome/common/url_constants.cc | 6 +++---
- chrome/installer/util/google_chrome_distribution.cc | 2 +-
- chromecast/browser/service/cast_service_simple.cc | 2 +-
- chromeos/geolocation/simple_geolocation_provider.cc | 2 +-
- components/cloud_devices/common/cloud_devices_urls.cc | 8 ++++----
- components/crash/content/app/breakpad_linux.cc | 2 +-
- components/drive/service/drive_api_service.cc | 8 ++++----
- components/feedback/feedback_uploader.cc | 2 +-
- components/gcm_driver/gcm_account_tracker.cc | 4 ++--
- components/google/core/browser/google_url_tracker.cc | 2 +-
- components/history/core/browser/web_history_service.cc | 6 +++---
- components/invalidation/impl/gcm_network_channel.cc | 2 +-
- components/invalidation/impl/p2p_invalidator.cc | 2 +-
- components/metrics/url_constants.cc | 4 ++--
- .../password_manager/core/browser/password_store.cc | 8 ++++----
- components/policy/core/common/policy_loader_win.cc | 2 +-
- components/policy/resources/policy_templates.json | 4 ++--
- components/rappor/rappor_service_impl.cc | 2 +-
- components/search_engines/prepopulated_engines.json | 2 +-
- .../translate/core/browser/translate_url_fetcher.cc | 1 +
- components/translate/core/common/translate_util.cc | 2 +-
- components/variations/variations_url_constants.cc | 2 +-
- content/browser/speech/speech_recognition_engine.cc | 2 +-
- content/shell/browser/shell_browser_main_parts.cc | 2 +-
- google_apis/gaia/gaia_constants.cc | 18 +++++++++---------
- google_apis/gaia/google_service_auth_error.cc | 2 +-
- google_apis/gcm/engine/gservices_settings.cc | 6 +++---
- jingle/notifier/base/gaia_token_pre_xmpp_auth.cc | 2 +-
- remoting/base/breakpad_mac.mm | 2 +-
- remoting/protocol/jingle_messages.cc | 2 +-
- remoting/webapp/base/js/xmpp_login_handler.js | 2 +-
- remoting/webapp/crd/manifest.json.jinja2 | 2 +-
- rlz/lib/lib_values.cc | 2 +-
- ui/app_list/demo/app_list_demo_views.cc | 2 +-
- ui/views/examples/webview_example.cc | 2 +-
- 61 files changed, 101 insertions(+), 100 deletions(-)
- --- a/build/mac/tweak_info_plist.py
- +++ b/build/mac/tweak_info_plist.py
- @@ -211,7 +211,7 @@ def _AddKeystoneKeys(plist, bundle_ident
- also requires the |bundle_identifier| argument (com.example.product)."""
- plist['KSVersion'] = plist['CFBundleShortVersionString']
- plist['KSProductID'] = bundle_identifier
- - plist['KSUpdateURL'] = 'https://tools.google.com/service/update2'
- + plist['KSUpdateURL'] = 'trk:132:https://tools.google.com/service/update2'
-
- _RemoveKeys(plist, 'KSChannelID')
- for tag_suffix in _TagSuffixes():
- --- a/chrome/browser/chromeos/customization/customization_document.cc
- +++ b/chrome/browser/chromeos/customization/customization_document.cc
- @@ -175,7 +175,7 @@ std::string ReadFileInBackground(const b
-
- // Template URL where to fetch OEM services customization manifest from.
- const char ServicesCustomizationDocument::kManifestUrl[] =
- - "https://ssl.gstatic.com/chrome/chromeos-customization/%s.json";
- + "trk:151:https://ssl.gstatic.com/chrome/chromeos-customization/%s.json";
-
- // A custom extensions::ExternalLoader that the ServicesCustomizationDocument
- // creates and uses to publish OEM default apps to the extensions system.
- --- a/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
- +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
- @@ -1819,7 +1819,7 @@ void FileManagerPrivateInternalGetDownlo
- IdentityManagerFactory::GetForProfile(chrome_details.GetProfile());
- const std::string& account_id = identity_manager->GetPrimaryAccountId();
- std::vector<std::string> scopes;
- - scopes.emplace_back("https://www.googleapis.com/auth/drive.readonly");
- + scopes.emplace_back("trk:208:https://www.googleapis.com/auth/drive.readonly");
-
- scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory =
- content::BrowserContext::GetDefaultStoragePartition(
- --- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
- +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
- @@ -84,7 +84,7 @@ namespace {
-
- using api::file_manager_private::ProfileInfo;
-
- -const char kCWSScope[] = "https://www.googleapis.com/auth/chromewebstore";
- +const char kCWSScope[] = "trk:209:https://www.googleapis.com/auth/chromewebstore";
-
- // Thresholds for mountCrostini() API.
- constexpr base::TimeDelta kMountCrostiniSlowOperationThreshold =
- --- a/chrome/browser/chromeos/file_manager/file_manager_string_util.cc
- +++ b/chrome/browser/chromeos/file_manager/file_manager_string_util.cc
- @@ -19,21 +19,21 @@ namespace {
-
- // Location of the page to buy more storage for Google Drive.
- const char kGoogleDriveBuyStorageUrl[] =
- - "https://www.google.com/settings/storage";
- + "trk:210:https://www.google.com/settings/storage";
-
- // Location of the overview page about Google Drive.
- const char kGoogleDriveOverviewUrl[] =
- - "https://support.google.com/chromebook/?p=filemanager_drive";
- + "trk:210:https://support.google.com/chromebook/?p=filemanager_drive";
-
- // Location of Google Drive specific help.
- const char kGoogleDriveHelpUrl[] =
- - "https://support.google.com/chromebook/?p=filemanager_drivehelp";
- + "trk:212:https://support.google.com/chromebook/?p=filemanager_drivehelp";
-
- // Location of Google Drive root.
- -const char kGoogleDriveRootUrl[] = "https://drive.google.com";
- +const char kGoogleDriveRootUrl[] = "trk:213:https://drive.google.com";
-
- // Printf format
- -const char kHelpURLFormat[] = "https://support.google.com/chromebook/answer/%d";
- +const char kHelpURLFormat[] = "trk:214:https://support.google.com/chromebook/answer/%d";
-
- // Location of the help page for low space warning in the downloads directory.
- const int kDownloadsLowSpaceWarningHelpNumber = 1061547;
- --- a/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
- +++ b/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
- @@ -48,8 +48,8 @@ enum class U2FAttestationPromptResult {
-
- const char kGoogleDotCom[] = "google.com";
- constexpr const char* kGoogleGstaticAppIds[] = {
- - "https://www.gstatic.com/securitykey/origins.json",
- - "https://www.gstatic.com/securitykey/a/google.com/origins.json"};
- + "trk:273:https://www.gstatic.com/securitykey/origins.json",
- + "trk:274:https://www.gstatic.com/securitykey/a/google.com/origins.json"};
-
- // ContainsAppIdByHash returns true iff the SHA-256 hash of one of the
- // elements of |list| equals |hash|.
- --- a/chrome/browser/extensions/install_signer.cc
- +++ b/chrome/browser/extensions/install_signer.cc
- @@ -65,7 +65,7 @@ const int kSignatureFormatVersion = 2;
- const size_t kSaltBytes = 32;
-
- const char kBackendUrl[] =
- - "https://www.googleapis.com/chromewebstore/v1.1/items/verify";
- + "trk:222:https://www.googleapis.com/chromewebstore/v1.1/items/verify";
-
- const char kPublicKeyPEM[] = \
- "-----BEGIN PUBLIC KEY-----" \
- --- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc
- +++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc
- @@ -42,5 +42,5 @@ base::string16 NaClInfoBarDelegate::GetL
- }
-
- GURL NaClInfoBarDelegate::GetLinkURL() const {
- - return GURL("https://support.google.com/chrome/?p=ib_nacl");
- + return GURL("trk:143:https://support.google.com/chrome/?p=ib_nacl");
- }
- --- a/chrome/browser/profiles/profile_avatar_downloader.cc
- +++ b/chrome/browser/profiles/profile_avatar_downloader.cc
- @@ -18,7 +18,7 @@
-
- namespace {
- const char kHighResAvatarDownloadUrlPrefix[] =
- - "https://www.gstatic.com/chrome/profile_avatars/";
- + "trk:271:https://www.gstatic.com/chrome/profile_avatars/";
- }
-
- ProfileAvatarDownloader::ProfileAvatarDownloader(
- --- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
- +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
- @@ -87,9 +87,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = {
- 'position': '{}',
- 'siteSpecificEnhancements': true,
- 'siteSpecificScriptBase':
- - 'https://ssl.gstatic.com/accessibility/javascript/ext/',
- + 'trk:152:https://ssl.gstatic.com/accessibility/javascript/ext/',
- 'siteSpecificScriptLoader':
- - 'https://ssl.gstatic.com/accessibility/javascript/ext/loader.js',
- + 'trk:153:https://ssl.gstatic.com/accessibility/javascript/ext/loader.js',
- 'speakTextUnderMouse': false,
- 'sticky': false,
- 'typingEcho': 0,
- --- a/chrome/browser/resources/default_apps/external_extensions.json
- +++ b/chrome/browser/resources/default_apps/external_extensions.json
- @@ -24,15 +24,15 @@
- },
- // Google Sheets
- "aapocclcgogkmnckokdopfmhonfmgoek" : {
- - "external_update_url": "https://clients2.google.com/service/update2/crx"
- + "external_update_url": "trk:03:https://clients2.google.com/service/update2/crx"
- },
- // Google Slides
- "felcaaldnbdncclmgdcncolpebgiejap" : {
- - "external_update_url": "https://clients2.google.com/service/update2/crx"
- + "external_update_url": "trk:04:https://clients2.google.com/service/update2/crx"
- },
- // Drive extension
- "ghbmnnjooekpmoecnnnilnnbdlolhkhi" : {
- - "external_update_url": "https://clients2.google.com/service/update2/crx"
- + "external_update_url": "trk:04:https://clients2.google.com/service/update2/crx"
- }
- }
-
- --- a/chrome/browser/safe_browsing/client_side_detection_service.cc
- +++ b/chrome/browser/safe_browsing/client_side_detection_service.cc
- @@ -72,9 +72,9 @@ const int ClientSideDetectionService::kN
- const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30;
-
- const char ClientSideDetectionService::kClientReportPhishingUrl[] =
- - "https://sb-ssl.google.com/safebrowsing/clientreport/phishing";
- + "trk:148:https://sb-ssl.google.com/safebrowsing/clientreport/phishing";
- const char ClientSideDetectionService::kClientReportMalwareUrl[] =
- - "https://sb-ssl.google.com/safebrowsing/clientreport/malware-check";
- + "trk:149:https://sb-ssl.google.com/safebrowsing/clientreport/malware-check";
-
- struct ClientSideDetectionService::ClientPhishingReportInfo {
- std::unique_ptr<network::SimpleURLLoader> loader;
- --- a/chrome/browser/safe_browsing/download_protection/download_feedback.cc
- +++ b/chrome/browser/safe_browsing/download_protection/download_feedback.cc
- @@ -256,7 +256,7 @@ const int64_t DownloadFeedback::kMaxUplo
-
- // static
- const char DownloadFeedback::kSbFeedbackURL[] =
- - "https://safebrowsing.google.com/safebrowsing/uploads/chrome";
- + "trk:164:https://safebrowsing.google.com/safebrowsing/uploads/chrome";
-
- // static
- DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr;
- --- a/components/safe_search_api/safe_search/safe_search_url_checker_client.cc
- +++ b/components/safe_search_api/safe_search/safe_search_url_checker_client.cc
- @@ -30,7 +30,7 @@ namespace safe_search_api {
- namespace {
-
- const char kSafeSearchApiUrl[] =
- - "https://safesearch.googleapis.com/v1:classify";
- + "trk:238:https://safesearch.googleapis.com/v1:classify";
- const char kDataContentType[] = "application/x-www-form-urlencoded";
- const char kDataFormat[] = "key=%s&urls=%s®ion_code=%s";
-
- --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
- +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
- @@ -263,7 +263,7 @@ GURL SpellcheckHunspellDictionary::GetDi
- DCHECK(!bdict_file.empty());
-
- static const char kDownloadServerUrl[] =
- - "https://redirector.gvt1.com/edgedl/chrome/dict/";
- + "trk:173:https://redirector.gvt1.com/edgedl/chrome/dict/";
-
- return GURL(std::string(kDownloadServerUrl) +
- base::ToLowerASCII(bdict_file));
- --- a/chrome/browser/supervised_user/supervised_user_service.cc
- +++ b/chrome/browser/supervised_user/supervised_user_service.cc
- @@ -84,7 +84,7 @@ namespace {
-
- // The URL from which to download a host blacklist if no local one exists yet.
- const char kBlacklistURL[] =
- - "https://www.gstatic.com/chrome/supervised_user/blacklist-20141001-1k.bin";
- + "trk:272:https://www.gstatic.com/chrome/supervised_user/blacklist-20141001-1k.bin";
- // The filename under which we'll store the blacklist (in the user data dir).
- const char kBlacklistFilename[] = "su-blacklist.bin";
-
- --- a/chrome/browser/tracing/crash_service_uploader.cc
- +++ b/chrome/browser/tracing/crash_service_uploader.cc
- @@ -41,7 +41,7 @@ using std::string;
-
- namespace {
-
- -const char kUploadURL[] = "https://clients2.google.com/cr/report";
- +const char kUploadURL[] = "trk:109:https://clients2.google.com/cr/report";
- const char kCrashUploadContentType[] = "multipart/form-data";
- const char kCrashMultipartBoundary[] =
- "----**--yradnuoBgoLtrapitluMklaTelgooG--**----";
- --- a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
- +++ b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
- @@ -32,7 +32,7 @@ namespace {
-
- // The URL to be used to re-install Chrome when auto-update failed for too long.
- constexpr char kDownloadChromeUrl[] =
- - "https://www.google.com/chrome/?&brand=CHWL"
- + "trk:242:https://www.google.com/chrome/?&brand=CHWL"
- "&utm_campaign=en&utm_source=en-et-na-us-chrome-bubble&utm_medium=et";
-
- // The maximum number of ignored bubble we track in the NumLaterPerReinstall
- --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
- +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
- @@ -69,17 +69,17 @@ namespace {
- // The URL for the the Learn More page shown on incognito new tab.
- const char kLearnMoreIncognitoUrl[] =
- #if defined(OS_CHROMEOS)
- - "https://support.google.com/chromebook/?p=incognito";
- + "trk:246:https://support.google.com/chromebook/?p=incognito";
- #else
- - "https://support.google.com/chrome/?p=incognito";
- + "trk:247:https://support.google.com/chrome/?p=incognito";
- #endif
-
- // The URL for the Learn More page shown on guest session new tab.
- const char kLearnMoreGuestSessionUrl[] =
- #if defined(OS_CHROMEOS)
- - "https://support.google.com/chromebook/?p=chromebook_guest";
- + "trk:248:https://support.google.com/chromebook/?p=chromebook_guest";
- #else
- - "https://support.google.com/chrome/?p=ui_guest";
- + "trk:261:https://support.google.com/chrome/?p=ui_guest";
- #endif
-
- SkColor GetThemeColor(const ui::ThemeProvider& tp, int id) {
- --- a/chrome/common/extensions/chrome_extensions_client.cc
- +++ b/chrome/common/extensions/chrome_extensions_client.cc
- @@ -46,9 +46,9 @@ namespace {
-
- // TODO(battre): Delete the HTTP URL once the blacklist is downloaded via HTTPS.
- const char kExtensionBlocklistUrlPrefix[] =
- - "http://www.gstatic.com/chrome/extensions/blacklist";
- + "trk:269:http://www.gstatic.com/chrome/extensions/blacklist";
- const char kExtensionBlocklistHttpsUrlPrefix[] =
- - "https://www.gstatic.com/chrome/extensions/blacklist";
- + "trk:270:https://www.gstatic.com/chrome/extensions/blacklist";
-
- const char kThumbsWhiteListedExtension[] = "khopmbdjffemhegeeobelklnbglcdgfh";
-
- --- a/chrome/common/url_constants.cc
- +++ b/chrome/common/url_constants.cc
- @@ -245,7 +245,7 @@ const char kSyncErrorsHelpURL[] =
- "https://support.google.com/chrome/?p=settings_sync_error";
-
- const char kSyncGoogleDashboardURL[] =
- - "https://www.google.com/settings/chrome/sync/";
- + "trk:251:https://www.google.com/settings/chrome/sync/";
-
- const char kSyncLearnMoreURL[] =
- "https://support.google.com/chrome/?p=settings_sign_in";
- @@ -343,7 +343,7 @@ const char kArcTermsURLPath[] = "arc/ter
- const char kArcPrivacyPolicyURLPath[] = "arc/privacy_policy";
-
- const char kOnlineEulaURLPath[] =
- - "https://www.google.com/intl/%s/chrome/eula_text.html";
- + "trk:250:https://www.google.com/intl/%s/chrome/eula_text.html";
-
- const char kTPMFirmwareUpdateLearnMoreURL[] =
- "https://support.google.com/chromebook/?p=tpm_update";
- --- a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
- +++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
- @@ -40,7 +40,7 @@ namespace {
- const wchar_t kIePath[] = L"Internet Explorer\\iexplore.exe";
-
- const char kChromeInstallUrl[] =
- - "https://google.com/cloudprint/learn/chrome.html";
- + "trk:252:https://google.com/cloudprint/learn/chrome.html";
-
- const wchar_t kCloudPrintRegKey[] = L"Software\\Google\\CloudPrint";
-
- --- a/chromecast/browser/service/cast_service_simple.cc
- +++ b/chromecast/browser/service/cast_service_simple.cc
- @@ -27,7 +27,7 @@ GURL GetStartupURL() {
- const base::CommandLine::StringVector& args = command_line->GetArgs();
-
- if (args.empty())
- - return GURL("http://www.google.com/");
- + return GURL("trk:255:http://www.google.com/");
-
- GURL url(args[0]);
- if (url.is_valid() && url.has_scheme())
- --- a/chromeos/geolocation/simple_geolocation_provider.cc
- +++ b/chromeos/geolocation/simple_geolocation_provider.cc
- @@ -20,7 +20,7 @@ namespace chromeos {
- namespace {
-
- const char kDefaultGeolocationProviderUrl[] =
- - "https://www.googleapis.com/geolocation/v1/geolocate?";
- + "trk:215:https://www.googleapis.com/geolocation/v1/geolocate?";
-
- } // namespace
-
- --- a/components/cloud_devices/common/cloud_devices_urls.cc
- +++ b/components/cloud_devices/common/cloud_devices_urls.cc
- @@ -14,20 +14,20 @@
- namespace cloud_devices {
-
- const char kCloudPrintAuthScope[] =
- - "https://www.googleapis.com/auth/cloudprint";
- + "trk:197:https://www.googleapis.com/auth/cloudprint";
-
- const char kCloudPrintLearnMoreURL[] =
- - "https://www.google.com/support/cloudprint";
- + "trk:199:https://www.google.com/support/cloudprint";
-
- const char kCloudPrintTestPageURL[] =
- - "http://www.google.com/landing/cloudprint/enable.html?print=true";
- + "trk:200:http://www.google.com/landing/cloudprint/enable.html?print=true";
-
- namespace {
-
- // Url must not be matched by "urls" section of
- // cloud_print_app/manifest.json. If it's matched, print driver dialog will
- // open sign-in page in separate window.
- -const char kCloudPrintURL[] = "https://www.google.com/cloudprint";
- +const char kCloudPrintURL[] = "trk:201:https://www.google.com/cloudprint";
-
- }
-
- --- a/components/crash/content/app/breakpad_linux.cc
- +++ b/components/crash/content/app/breakpad_linux.cc
- @@ -100,7 +100,7 @@ namespace {
- // while we do have functions to deal with uint64_t's.
- uint64_t g_crash_loop_before_time = 0;
- #else
- -const char kUploadURL[] = "https://clients2.google.com/cr/report";
- +const char kUploadURL[] = "trk:06:https://clients2.google.com/cr/report";
- #endif
-
- bool g_is_crash_reporter_enabled = false;
- --- a/components/drive/service/drive_api_service.cc
- +++ b/components/drive/service/drive_api_service.cc
- @@ -74,10 +74,10 @@ namespace drive {
- namespace {
-
- // OAuth2 scopes for Drive API.
- -const char kDriveScope[] = "https://www.googleapis.com/auth/drive";
- +const char kDriveScope[] = "trk:217:https://www.googleapis.com/auth/drive";
- const char kDriveAppsReadonlyScope[] =
- - "https://www.googleapis.com/auth/drive.apps.readonly";
- -const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps";
- + "trk:218:https://www.googleapis.com/auth/drive.apps.readonly";
- +const char kDriveAppsScope[] = "trk:219:https://www.googleapis.com/auth/drive.apps";
-
- // Mime type to create a directory.
- const char kFolderMimeType[] = "application/vnd.google-apps.folder";
- --- a/components/feedback/feedback_uploader.cc
- +++ b/components/feedback/feedback_uploader.cc
- @@ -26,7 +26,7 @@ constexpr base::FilePath::CharType kFeed
- FILE_PATH_LITERAL("Feedback Reports");
-
- constexpr char kFeedbackPostUrl[] =
- - "https://www.google.com/tools/feedback/chrome/__submit";
- + "trk:232:https://www.google.com/tools/feedback/chrome/__submit";
-
- constexpr char kProtoBufMimeType[] = "application/x-protobuf";
-
- --- a/components/gcm_driver/gcm_account_tracker.cc
- +++ b/components/gcm_driver/gcm_account_tracker.cc
- @@ -26,9 +26,9 @@ namespace gcm {
- namespace {
-
- // Scopes needed by the OAuth2 access tokens.
- -const char kGCMGroupServerScope[] = "https://www.googleapis.com/auth/gcm";
- +const char kGCMGroupServerScope[] = "trk:230:https://www.googleapis.com/auth/gcm";
- const char kGCMCheckinServerScope[] =
- - "https://www.googleapis.com/auth/android_checkin";
- + "trk:231:https://www.googleapis.com/auth/android_checkin";
- // Name of the GCM account tracker for fetching access tokens.
- const char kGCMAccountTrackerName[] = "gcm_account_tracker";
- // Minimum token validity when sending to GCM groups server.
- --- a/components/history/core/browser/web_history_service.cc
- +++ b/components/history/core/browser/web_history_service.cc
- @@ -40,13 +40,13 @@ namespace history {
- namespace {
-
- const char kHistoryOAuthScope[] =
- - "https://www.googleapis.com/auth/chromesync";
- + "trk:138:https://www.googleapis.com/auth/chromesync";
-
- const char kHistoryQueryHistoryUrl[] =
- - "https://history.google.com/history/api/lookup?client=chrome";
- + "trk:139:https://history.google.com/history/api/lookup?client=chrome";
-
- const char kHistoryDeleteHistoryUrl[] =
- - "https://history.google.com/history/api/delete?client=chrome";
- + "trk:140:https://history.google.com/history/api/delete?client=chrome";
-
- const char kHistoryAudioHistoryUrl[] =
- "https://history.google.com/history/api/lookup?client=audio";
- --- a/components/invalidation/impl/gcm_network_channel.cc
- +++ b/components/invalidation/impl/gcm_network_channel.cc
- @@ -40,7 +40,7 @@ namespace syncer {
- namespace {
-
- const char kCacheInvalidationEndpointUrl[] =
- - "https://clients4.google.com/invalidation/android/request/";
- + "trk:264:https://clients4.google.com/invalidation/android/request/";
- const char kCacheInvalidationPackageName[] = "com.google.chrome.invalidations";
-
- // Register backoff policy.
- --- a/components/metrics/url_constants.cc
- +++ b/components/metrics/url_constants.cc
- @@ -7,12 +7,12 @@
- namespace metrics {
-
- const char kNewMetricsServerUrl[] =
- - "https://clientservices.googleapis.com/uma/v2";
- + "trk:265:https://clientservices.googleapis.com/uma/v2";
-
- const char kNewMetricsServerUrlInsecure[] =
- - "http://clientservices.googleapis.com/uma/v2";
- + "trk:265:http://clientservices.googleapis.com/uma/v2";
-
- -const char kOldMetricsServerUrl[] = "https://clients4.google.com/uma/v2";
- +const char kOldMetricsServerUrl[] = "trk:265:https://clients4.google.com/uma/v2";
-
- const char kDefaultMetricsMimeType[] = "application/vnd.chrome.uma";
-
- --- a/components/password_manager/core/browser/password_store.cc
- +++ b/components/password_manager/core/browser/password_store.cc
- @@ -222,10 +222,10 @@ void PasswordStore::GetLogins(const Form
- // TODO(mdm): actually delete them at some point, say M24 or so.
- base::Time cutoff; // the null time
- if (form.scheme == PasswordForm::Scheme::kHtml &&
- - (form.signon_realm == "http://www.google.com" ||
- - form.signon_realm == "http://www.google.com/" ||
- - form.signon_realm == "https://www.google.com" ||
- - form.signon_realm == "https://www.google.com/")) {
- + (form.signon_realm == "trk:187:http://www.google.com" ||
- + form.signon_realm == "trk:188:http://www.google.com/" ||
- + form.signon_realm == "trk:189:https://www.google.com" ||
- + form.signon_realm == "trk:190:https://www.google.com/")) {
- static const base::Time::Exploded exploded_cutoff = {
- 2012, 1, 0, 1, 0, 0, 0, 0}; // 00:00 Jan 1 2012
- base::Time out_time;
- --- a/components/policy/core/common/policy_loader_win.cc
- +++ b/components/policy/core/common/policy_loader_win.cc
- @@ -57,7 +57,7 @@ const char kKeyThirdParty[] = "3rdparty"
-
- // The web store url that is the only trusted source for extensions.
- const char kExpectedWebStoreUrl[] =
- - ";https://clients2.google.com/service/update2/crx";
- + ";trk:15:https://clients2.google.com/service/update2/crx";
- // String to be prepended to each blocked entry.
- const char kBlockedExtensionPrefix[] = "[BLOCKED]";
-
- --- a/components/policy/resources/policy_templates.json
- +++ b/components/policy/resources/policy_templates.json
- @@ -3527,7 +3527,7 @@
- 'dynamic_refresh': True,
- 'per_profile': True,
- },
- - 'example_value': ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;https://clients2.google.com/service/update2/crx', 'abcdefghijklmnopabcdefghijklmnop'],
- + 'example_value': ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;trk:16:https://clients2.google.com/service/update2/crx', 'abcdefghijklmnopabcdefghijklmnop'],
- 'id': 34,
- 'caption': '''Configure the list of force-installed apps and extensions''',
- 'tags': ['full-admin-access'],
- @@ -7501,7 +7501,7 @@
- 'features': {
- 'dynamic_refresh': True,
- },
- - 'example_value': [ '{ "extension-id": "khgabmflimjjbclkmljlpmgaleanedem", "update-url": "https://clients2.google.com/service/update2/crx" }' ],
- + 'example_value': [ '{ "extension-id": "khgabmflimjjbclkmljlpmgaleanedem", "update-url": "trk:18:https://clients2.google.com/service/update2/crx" }' ],
- 'id': 135,
- 'caption': '''List of AppPack extensions''',
- 'tags': [],
- --- a/components/rappor/rappor_service_impl.cc
- +++ b/components/rappor/rappor_service_impl.cc
- @@ -32,7 +32,7 @@ const char kMimeType[] = "application/vn
- const char kRapporDailyEventHistogram[] = "Rappor.DailyEvent.IntervalType";
-
- // The rappor server's URL.
- -const char kDefaultServerUrl[] = "https://clients4.google.com/rappor";
- +const char kDefaultServerUrl[] = "trk:266:https://clients4.google.com/rappor";
-
- } // namespace
-
- --- a/components/search_engines/prepopulated_engines.json
- +++ b/components/search_engines/prepopulated_engines.json
- @@ -109,7 +109,7 @@
- "google": {
- "name": "Google",
- "keyword": "google.com",
- - "favicon_url": "https://www.google.com/images/branding/product/ico/googleg_lodp.ico",
- + "favicon_url": "trk:186:https://www.google.com/images/branding/product/ico/googleg_lodp.ico",
- "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}",
- "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:omniboxFocusType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}",
- "image_url": "{google:baseURL}searchbyimage/upload",
- --- a/components/translate/core/browser/translate_url_fetcher.cc
- +++ b/components/translate/core/browser/translate_url_fetcher.cc
- @@ -114,6 +114,7 @@ bool TranslateURLFetcher::Request(const
- max_retry_on_5xx_, network::SimpleURLLoader::RetryMode::RETRY_ON_5XX);
- }
-
- + fprintf(stderr, "translator: fetching something from %s\n", url_.spec().c_str());
- simple_loader_->DownloadToStringOfUnboundedSizeUntilCrashAndDie(
- url_loader_factory,
- base::BindOnce(&TranslateURLFetcher::OnSimpleLoaderComplete,
- --- a/components/translate/core/common/translate_util.cc
- +++ b/components/translate/core/common/translate_util.cc
- @@ -18,7 +18,7 @@
-
- namespace translate {
-
- -const char kSecurityOrigin[] = "https://translate.googleapis.com/";
- +const char kSecurityOrigin[] = "trk:220:https://translate.googleapis.com/";
-
- GURL GetTranslateSecurityOrigin() {
- std::string security_origin(kSecurityOrigin);
- --- a/components/variations/variations_url_constants.cc
- +++ b/components/variations/variations_url_constants.cc
- @@ -8,7 +8,7 @@ namespace variations {
-
- // Default server of Variations seed info.
- const char kDefaultServerUrl[] =
- - "https://clientservices.googleapis.com/chrome-variations/seed";
- + "trk:142:https://clientservices.googleapis.com/chrome-variations/seed";
-
- const char kDefaultInsecureServerUrl[] =
- "http://clientservices.googleapis.com/chrome-variations/seed";
- --- a/content/browser/speech/speech_recognition_engine.cc
- +++ b/content/browser/speech/speech_recognition_engine.cc
- @@ -32,7 +32,7 @@ namespace content {
- namespace {
-
- const char kWebServiceBaseUrl[] =
- - "https://www.google.com/speech-api/full-duplex/v1";
- + "trk:184:https://www.google.com/speech-api/full-duplex/v1";
- const char kDownstreamUrl[] = "/down?";
- const char kUpstreamUrl[] = "/up?";
-
- --- a/content/shell/browser/shell_browser_main_parts.cc
- +++ b/content/shell/browser/shell_browser_main_parts.cc
- @@ -73,7 +73,7 @@ GURL GetStartupURL() {
- #endif
-
- if (args.empty())
- - return GURL("https://www.google.com/");
- + return GURL("trk:183:https://www.google.com/");
-
- GURL url(args[0]);
- if (url.is_valid() && url.has_scheme())
- --- a/google_apis/gaia/gaia_constants.cc
- +++ b/google_apis/gaia/gaia_constants.cc
- @@ -25,36 +25,36 @@ const char kSyncService[] = "chromiumsyn
- const char kRemotingService[] = "chromoting";
-
- // OAuth scopes.
- -const char kOAuth1LoginScope[] = "https://www.google.com/accounts/OAuthLogin";
- +const char kOAuth1LoginScope[] = "trk:181:https://www.google.com/accounts/OAuthLogin";
- const char kOAuthWrapBridgeUserInfoScope[] =
- - "https://www.googleapis.com/auth/userinfo.email";
- + "trk:101:https://www.googleapis.com/auth/userinfo.email";
-
- // Service/scope names for device management (cloud-based policy) server.
- const char kDeviceManagementServiceOAuth[] =
- - "https://www.googleapis.com/auth/chromeosdevicemanagement";
- + "trk:102:https://www.googleapis.com/auth/chromeosdevicemanagement";
-
- // OAuth2 scope for access to all Google APIs.
- -const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api";
- +const char kAnyApiOAuth2Scope[] = "trk:103:https://www.googleapis.com/auth/any-api";
-
- // OAuth2 scope for access to Chrome sync APIs
- const char kChromeSyncOAuth2Scope[] =
- - "https://www.googleapis.com/auth/chromesync";
- + "trk:104:https://www.googleapis.com/auth/chromesync";
- // OAuth2 scope for access to the Chrome Sync APIs for managed profiles.
- const char kChromeSyncSupervisedOAuth2Scope[] =
- - "https://www.googleapis.com/auth/chromesync_playpen";
- + "trk:105:https://www.googleapis.com/auth/chromesync_playpen";
-
- // OAuth2 scope for access to Google Family Link Supervision Setup.
- const char kKidsSupervisionSetupChildOAuth2Scope[] =
- - "https://www.googleapis.com/auth/kids.supervision.setup.child";
- + "trk:275:https://www.googleapis.com/auth/kids.supervision.setup.child";
-
- // OAuth2 scope for access to Google Talk APIs (XMPP).
- const char kGoogleTalkOAuth2Scope[] =
- - "https://www.googleapis.com/auth/googletalk";
- + "trk:106:https://www.googleapis.com/auth/googletalk";
-
- const char kGoogleUserInfoEmail[] =
- - "https://www.googleapis.com/auth/userinfo.email";
- + "trk:107:https://www.googleapis.com/auth/userinfo.email";
- const char kGoogleUserInfoProfile[] =
- - "https://www.googleapis.com/auth/userinfo.profile";
- + "trk:260:https://www.googleapis.com/auth/userinfo.profile";
-
- // OAuth scope for access to the people API (read-only).
- const char kPeopleApiReadOnlyOAuth2Scope[] =
- --- a/google_apis/gcm/engine/gservices_settings.cc
- +++ b/google_apis/gcm/engine/gservices_settings.cc
- @@ -29,18 +29,18 @@ const char kRegistrationURLKey[] = "gcm_
-
- const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days.
- const int64_t kMinimumCheckinInterval = 12 * 60 * 60; // seconds = 12 hours.
- -const char kDefaultCheckinURL[] = "https://android.clients.google.com/checkin";
- +const char kDefaultCheckinURL[] = "trk:110:https://android.clients.google.com/checkin";
- const char kDefaultMCSHostname[] = "mtalk.google.com";
- const int kDefaultMCSMainSecurePort = 5228;
- const int kDefaultMCSFallbackSecurePort = 443;
- const char kDefaultRegistrationURL[] =
- - "https://android.clients.google.com/c2dm/register3";
- + "trk:111:https://android.clients.google.com/c2dm/register3";
- // Settings that are to be deleted are marked with this prefix in checkin
- // response.
- const char kDeleteSettingPrefix[] = "delete_";
- // Settings digest starts with verison number followed by '-'.
- const char kDigestVersionPrefix[] = "1-";
- -const char kMCSEnpointTemplate[] = "https://%s:%d";
- +const char kMCSEnpointTemplate[] = "trk:112:https://%s:%d";
- const int kMaxSecurePort = 65535;
-
- std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) {
- --- a/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
- +++ b/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
- @@ -33,7 +33,7 @@ class GaiaCookieMechanism : public jingl
- // These attributes are necessary for working with non-gmail gaia
- // accounts.
- const std::string NS_GOOGLE_AUTH_PROTOCOL(
- - "http://www.google.com/talk/protocol/auth");
- + "trk:179:http://www.google.com/talk/protocol/auth");
- const jingle_xmpp::QName QN_GOOGLE_ALLOW_GENERATED_JID_XMPP_LOGIN(
- NS_GOOGLE_AUTH_PROTOCOL, "allow-generated-jid");
- const jingle_xmpp::QName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT(
- --- a/remoting/base/breakpad_mac.mm
- +++ b/remoting/base/breakpad_mac.mm
- @@ -56,7 +56,7 @@ void InitializeCrashReporting() {
- forKey:@BREAKPAD_REPORT_INTERVAL];
- }
- if (![breakpad_config objectForKey:@BREAKPAD_URL]) {
- - [breakpad_config setObject:@"https://clients2.google.com/cr/report"
- + [breakpad_config setObject:@"trk:108:https://clients2.google.com/cr/report"
- forKey:@BREAKPAD_URL];
- }
-
- --- a/remoting/protocol/jingle_messages.cc
- +++ b/remoting/protocol/jingle_messages.cc
- @@ -25,7 +25,7 @@ const char kJabberNamespace[] = "jabber:
- const char kJingleNamespace[] = "urn:xmpp:jingle:1";
-
- // Namespace for transport messages when using standard ICE.
- -const char kIceTransportNamespace[] = "google:remoting:ice";
- +const char kIceTransportNamespace[] = "trk:100:google:remoting:ice";
-
- const char kWebrtcTransportNamespace[] = "google:remoting:webrtc";
-
- --- a/remoting/webapp/base/js/xmpp_login_handler.js
- +++ b/remoting/webapp/base/js/xmpp_login_handler.js
- @@ -295,7 +295,7 @@ remoting.XmppLoginHandler.prototype.star
- 'auth:allow-generated-jid="true" ' +
- 'auth:client-uses-full-bind-result="true" ' +
- 'auth:allow-non-google-login="true" ' +
- - 'xmlns:auth="http://www.google.com/talk/protocol/auth">' +
- + 'xmlns:auth="trk:176:http://www.google.com/talk/protocol/auth">' +
- cookie +
- '</auth>');
- };
- --- a/remoting/webapp/crd/manifest.json.jinja2
- +++ b/remoting/webapp/crd/manifest.json.jinja2
- @@ -24,7 +24,7 @@
- "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}",
- "scopes": [
- {% if USE_GCD %}
- - "https://www.googleapis.com/auth/clouddevices",
- + "trk:198:https://www.googleapis.com/auth/clouddevices",
- {% endif %}
- "https://www.googleapis.com/auth/chromoting",
- "https://www.googleapis.com/auth/googletalk",
- --- a/ui/views/examples/webview_example.cc
- +++ b/ui/views/examples/webview_example.cc
- @@ -25,7 +25,7 @@ void WebViewExample::CreateExampleView(V
- container->SetLayoutManager(std::make_unique<FillLayout>());
- container->AddChildView(webview_);
-
- - webview_->LoadInitialURL(GURL("http://www.google.com/"));
- + webview_->LoadInitialURL(GURL("trk:174:http://www.google.com/"));
- webview_->GetWebContents()->Focus();
- }
-
- --- a/extensions/browser/updater/safe_manifest_parser.cc
- +++ b/extensions/browser/updater/safe_manifest_parser.cc
- @@ -27,7 +27,7 @@ namespace {
-
- constexpr char kExpectedGupdateProtocol[] = "2.0";
- constexpr char kExpectedGupdateXmlns[] =
- - "http://www.google.com/update2/response";
- + "trk:182:http://www.google.com/update2/response";
-
- void ReportError(ParseUpdateManifestCallback callback,
- const std::string& error) {
- --- a/extensions/common/extension_urls.cc
- +++ b/extensions/common/extension_urls.cc
- @@ -32,7 +32,7 @@ namespace extension_urls {
-
- const char kChromeWebstoreBaseURL[] = "https://chrome.google.com/webstore";
- const char kChromeWebstoreUpdateURL[] =
- - "https://clients2.google.com/service/update2/crx";
- + "trk:05:https://clients2.google.com/service/update2/crx";
-
- GURL GetWebstoreLaunchURL() {
- extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get();
- --- a/chrome/installer/setup/google_chrome_behaviors.cc
- +++ b/chrome/installer/setup/google_chrome_behaviors.cc
- @@ -44,7 +44,7 @@ base::string16 LocalizeUrl(const wchar_t
-
- base::string16 GetUninstallSurveyUrl() {
- static constexpr wchar_t kSurveyUrl[] =
- - L"https://support.google.com/chrome/contact/chromeuninstall3?hl=$1";
- + L"trk:253:https://support.google.com/chrome/contact/chromeuninstall3?hl=$1";
- return LocalizeUrl(kSurveyUrl);
- }
-
|