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

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

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use Polymer where relevant. Created 4 years, 11 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 #include "chrome/browser/profiles/gaia_info_update_service.h" 5 #include "chrome/browser/profiles/gaia_info_update_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return true; 78 return true;
79 79
80 // This feature is disable by default. 80 // This feature is disable by default.
81 return false; 81 return false;
82 } 82 }
83 83
84 bool GAIAInfoUpdateService::NeedsProfilePicture() const { 84 bool GAIAInfoUpdateService::NeedsProfilePicture() const {
85 return true; 85 return true;
86 } 86 }
87 87
88 int GAIAInfoUpdateService::GetDesiredImageSideLength() const { 88 unsigned int GAIAInfoUpdateService::GetDesiredImageSideLength() const {
89 return 256; 89 return 256;
90 } 90 }
91 91
92 Profile* GAIAInfoUpdateService::GetBrowserProfile() { 92 Profile* GAIAInfoUpdateService::GetBrowserProfile() {
93 return profile_; 93 return profile_;
94 } 94 }
95 95
96 std::string GAIAInfoUpdateService::GetCachedPictureURL() const { 96 std::string GAIAInfoUpdateService::GetCachedPictureURL() const {
97 return profile_->GetPrefs()->GetString(prefs::kProfileGAIAInfoPictureURL); 97 return profile_->GetPrefs()->GetString(prefs::kProfileGAIAInfoPictureURL);
98 } 98 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 const std::string& account_id, 221 const std::string& account_id,
222 const std::string& username, 222 const std::string& username,
223 const std::string& password) { 223 const std::string& password) {
224 OnUsernameChanged(username); 224 OnUsernameChanged(username);
225 } 225 }
226 226
227 void GAIAInfoUpdateService::GoogleSignedOut(const std::string& account_id, 227 void GAIAInfoUpdateService::GoogleSignedOut(const std::string& account_id,
228 const std::string& username) { 228 const std::string& username) {
229 OnUsernameChanged(std::string()); 229 OnUsernameChanged(std::string());
230 } 230 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698