Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: chrome/browser/profiles/profile_downloader.h

Issue 8772055: Use Google Plus API to get profile information (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_downloader.h
diff --git a/chrome/browser/profiles/profile_downloader.h b/chrome/browser/profiles/profile_downloader.h
index 4e15a47fa5d7ad215477463bb74f116a6c16c575..d4c72e3d75ade7a276b682e3b76951a3824549d7 100644
--- a/chrome/browser/profiles/profile_downloader.h
+++ b/chrome/browser/profiles/profile_downloader.h
@@ -61,6 +61,13 @@ class ProfileDownloader : public content::URLFetcherDelegate,
// when the picture status is PICTURE_SUCCESS.
virtual std::string GetProfilePictureURL() const;
+ // Parses the entry response and gets the name and and profile image URL.
+ // Returns false to indicate a parsing error.
+ static bool GetProfileNameAndImageURL(const std::string& data,
Ivan Korotkov 2011/12/04 15:08:52 Please document what |data| is (entry response is
sail 2011/12/05 19:26:12 Done.
+ string16* nick_name,
+ std::string* url,
+ int image_size);
Ivan Korotkov 2011/12/04 15:08:52 if this is public for testing only, consider decla
sail 2011/12/05 19:26:12 Done.
+
private:
// Overriden from content::URLFetcherDelegate:
virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE;
@@ -79,12 +86,6 @@ class ProfileDownloader : public content::URLFetcherDelegate,
virtual void OnGetTokenSuccess(const std::string& access_token) OVERRIDE;
virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) OVERRIDE;
- // Parses the entry response from Picasa and gets the nick name and
- // and profile image URL. Returns false to indicate a parsing error.
- bool GetProfileNickNameAndImageURL(const std::string& data,
- string16* nick_name,
- std::string* url) const;
-
// Returns true if the image url is url of the default profile picture.
bool IsDefaultProfileImageURL(const std::string& url) const;
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_downloader.cc » ('j') | chrome/browser/profiles/profile_downloader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698