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

Side by Side Diff: chrome/browser/profiles/gaia_info_update_service.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 months 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_
6 #define CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ 6 #define CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 explicit GAIAInfoUpdateService(Profile* profile); 26 explicit GAIAInfoUpdateService(Profile* profile);
27 virtual ~GAIAInfoUpdateService(); 27 virtual ~GAIAInfoUpdateService();
28 28
29 // Updates the GAIA info for the profile associated with this instance. 29 // Updates the GAIA info for the profile associated with this instance.
30 virtual void Update(); 30 virtual void Update();
31 31
32 // Checks if downloading GAIA info for the given profile is allowed. 32 // Checks if downloading GAIA info for the given profile is allowed.
33 static bool ShouldUseGAIAProfileInfo(Profile* profile); 33 static bool ShouldUseGAIAProfileInfo(Profile* profile);
34 34
35 // ProfileDownloaderDelegate: 35 // ProfileDownloaderDelegate:
36 virtual bool NeedsProfilePicture() const OVERRIDE; 36 virtual bool NeedsProfilePicture() const override;
37 virtual int GetDesiredImageSideLength() const OVERRIDE; 37 virtual int GetDesiredImageSideLength() const override;
38 virtual Profile* GetBrowserProfile() OVERRIDE; 38 virtual Profile* GetBrowserProfile() override;
39 virtual std::string GetCachedPictureURL() const OVERRIDE; 39 virtual std::string GetCachedPictureURL() const override;
40 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) OVERRIDE; 40 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) override;
41 virtual void OnProfileDownloadFailure( 41 virtual void OnProfileDownloadFailure(
42 ProfileDownloader* downloader, 42 ProfileDownloader* downloader,
43 ProfileDownloaderDelegate::FailureReason reason) OVERRIDE; 43 ProfileDownloaderDelegate::FailureReason reason) override;
44 44
45 // Overridden from KeyedService: 45 // Overridden from KeyedService:
46 virtual void Shutdown() OVERRIDE; 46 virtual void Shutdown() override;
47 47
48 private: 48 private:
49 FRIEND_TEST_ALL_PREFIXES(GAIAInfoUpdateServiceTest, ScheduleUpdate); 49 FRIEND_TEST_ALL_PREFIXES(GAIAInfoUpdateServiceTest, ScheduleUpdate);
50 50
51 void OnUsernameChanged(const std::string& username); 51 void OnUsernameChanged(const std::string& username);
52 void ScheduleNextUpdate(); 52 void ScheduleNextUpdate();
53 53
54 // Overridden from SigninManagerBase::Observer: 54 // Overridden from SigninManagerBase::Observer:
55 virtual void GoogleSigninSucceeded(const std::string& account_id, 55 virtual void GoogleSigninSucceeded(const std::string& account_id,
56 const std::string& username, 56 const std::string& username,
57 const std::string& password) OVERRIDE; 57 const std::string& password) override;
58 virtual void GoogleSignedOut(const std::string& account_id, 58 virtual void GoogleSignedOut(const std::string& account_id,
59 const std::string& username) OVERRIDE; 59 const std::string& username) override;
60 60
61 Profile* profile_; 61 Profile* profile_;
62 scoped_ptr<ProfileDownloader> profile_image_downloader_; 62 scoped_ptr<ProfileDownloader> profile_image_downloader_;
63 base::Time last_updated_; 63 base::Time last_updated_;
64 base::OneShotTimer<GAIAInfoUpdateService> timer_; 64 base::OneShotTimer<GAIAInfoUpdateService> timer_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(GAIAInfoUpdateService); 66 DISALLOW_COPY_AND_ASSIGN(GAIAInfoUpdateService);
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ 69 #endif // CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698