Chromium Code Reviews| Index: chrome/browser/google/google_util.h |
| =================================================================== |
| --- chrome/browser/google/google_util.h (revision 248295) |
| +++ chrome/browser/google/google_util.h (working copy) |
| @@ -29,6 +29,10 @@ |
| GURL LinkDoctorBaseURL(); |
| void SetMockLinkDoctorBaseURLForTesting(); |
| +// Returns the Google locale. This is the same string as |
| +// AppendGoogleLocaleParam adds to the URL, only without the leading "hl". |
| +std::string GetGoogleLocale(); |
| + |
| // Adds the Google locale string to the URL (e.g., hl=en-US). This does not |
| // check to see if the param already exists. |
| GURL AppendGoogleLocaleParam(const GURL& url); |
| @@ -36,10 +40,12 @@ |
| // String version of AppendGoogleLocaleParam. |
| std::string StringAppendGoogleLocaleParam(const std::string& url); |
| -// Adds the Google TLD string for the given profile to the URL (e.g., sd=com). |
| -// This does not check to see if the param already exists. |
| -GURL AppendGoogleTLDParam(Profile* profile, const GURL& url); |
| +// Returns the Google country code string for the given profile. |
| +std::string GetGoogleCountryCodeCode(Profile* profile); |
|
Peter Kasting
2014/02/04 22:49:04
"Code" is repeated twice.
mmenke
2014/02/04 23:52:02
Fixed.
|
| +// Returns the Google search URL for the given profile. |
| +GURL GetGoogleSearchURL(Profile* profile); |
| + |
| // Returns in |brand| the brand code or distribution tag that has been |
| // assigned to a partner. Returns false if the information is not available. |
| bool GetBrand(std::string* brand); |