OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/ui/webui/options/manage_profile_handler.h" | 5 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 base::StringValue value(kManageProfileIdentifier); | 220 base::StringValue value(kManageProfileIdentifier); |
221 SendProfileIconsAndNames(value); | 221 SendProfileIconsAndNames(value); |
222 } | 222 } |
223 | 223 |
224 void ManageProfileHandler::OnProfileAvatarChanged( | 224 void ManageProfileHandler::OnProfileAvatarChanged( |
225 const base::FilePath& profile_path) { | 225 const base::FilePath& profile_path) { |
226 base::StringValue value(kManageProfileIdentifier); | 226 base::StringValue value(kManageProfileIdentifier); |
227 SendProfileIconsAndNames(value); | 227 SendProfileIconsAndNames(value); |
228 } | 228 } |
229 | 229 |
230 void ManageProfileHandler::OnStateChanged() { | 230 void ManageProfileHandler::OnStateChanged(syncer::SyncService* sync) { |
231 RequestCreateProfileUpdate(NULL); | 231 RequestCreateProfileUpdate(NULL); |
232 } | 232 } |
233 | 233 |
234 void ManageProfileHandler::GenerateSignedinUserSpecificStrings( | 234 void ManageProfileHandler::GenerateSignedinUserSpecificStrings( |
235 base::DictionaryValue* dictionary) { | 235 base::DictionaryValue* dictionary) { |
236 std::string username; | 236 std::string username; |
237 std::string domain_name; | 237 std::string domain_name; |
238 | 238 |
239 #if !defined(OS_CHROMEOS) | 239 #if !defined(OS_CHROMEOS) |
240 Profile* profile = Profile::FromWebUI(web_ui()); | 240 Profile* profile = Profile::FromWebUI(web_ui()); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 540 |
541 // Update the UI buttons. | 541 // Update the UI buttons. |
542 OnHasProfileShortcuts(false); | 542 OnHasProfileShortcuts(false); |
543 } | 543 } |
544 | 544 |
545 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { | 545 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { |
546 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui())); | 546 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui())); |
547 } | 547 } |
548 | 548 |
549 } // namespace options | 549 } // namespace options |
OLD | NEW |