Chromium Code Reviews| Index: chrome/browser/profiles/profile_downloader.h |
| diff --git a/chrome/browser/profiles/profile_downloader.h b/chrome/browser/profiles/profile_downloader.h |
| index 8faf26d6ef0e047fbbe9bdb6a33dc7eedf4b3a6c..896b4cb6d36a65d49a5dc60c94700684ce8b7c99 100644 |
| --- a/chrome/browser/profiles/profile_downloader.h |
| +++ b/chrome/browser/profiles/profile_downloader.h |
| @@ -51,6 +51,9 @@ class ProfileDownloader : public net::URLFetcherDelegate, |
| // token is available. Should not be called more than once. |
| virtual void StartForAccount(const std::string& account_id); |
| + // On successful download this returns the hosted domain of the user. |
| + virtual base::string16 GetProfileHostedDomain() const; |
|
noms (inactive)
2014/09/15 18:52:40
nit: const?
Mike Lerman
2014/09/15 19:51:41
Discussed offline. none of the others return const
|
| + |
| // On successful download this returns the full name of the user. For example |
| // "Pat Smith". |
| virtual base::string16 GetProfileFullName() const; |
| @@ -106,7 +109,8 @@ class ProfileDownloader : public net::URLFetcherDelegate, |
| base::string16* given_name, |
| std::string* url, |
| int image_size, |
| - std::string* profile_locale); |
| + std::string* profile_locale, |
| + base::string16* hosted_domain); |
| // Returns true if the image url is url of the default profile picture. |
| static bool IsDefaultProfileImageURL(const std::string& url); |
| @@ -126,6 +130,7 @@ class ProfileDownloader : public net::URLFetcherDelegate, |
| scoped_ptr<net::URLFetcher> user_entry_fetcher_; |
| scoped_ptr<net::URLFetcher> profile_image_fetcher_; |
| scoped_ptr<OAuth2TokenService::Request> oauth2_access_token_request_; |
| + base::string16 profile_hosted_domain_; |
| base::string16 profile_full_name_; |
| base::string16 profile_given_name_; |
| std::string profile_locale_; |