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/notifications/message_center_settings_controller.h" | 5 #include "chrome/browser/notifications/message_center_settings_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/string_compare.h" | 10 #include "base/i18n/string_compare.h" |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 void MessageCenterSettingsController::OnProfileWasRemoved( | 451 void MessageCenterSettingsController::OnProfileWasRemoved( |
452 const base::FilePath& profile_path, | 452 const base::FilePath& profile_path, |
453 const base::string16& profile_name) { | 453 const base::string16& profile_name) { |
454 RebuildNotifierGroups(true); | 454 RebuildNotifierGroups(true); |
455 } | 455 } |
456 void MessageCenterSettingsController::OnProfileNameChanged( | 456 void MessageCenterSettingsController::OnProfileNameChanged( |
457 const base::FilePath& profile_path, | 457 const base::FilePath& profile_path, |
458 const base::string16& old_profile_name) { | 458 const base::string16& old_profile_name) { |
459 RebuildNotifierGroups(true); | 459 RebuildNotifierGroups(true); |
460 } | 460 } |
461 void MessageCenterSettingsController::OnProfileUserNameChanged( | 461 void MessageCenterSettingsController::OnProfileAuthInfoChanged( |
462 const base::FilePath& profile_path) { | 462 const base::FilePath& profile_path) { |
463 RebuildNotifierGroups(true); | 463 RebuildNotifierGroups(true); |
464 } | 464 } |
465 | 465 |
466 #if defined(OS_CHROMEOS) | 466 #if defined(OS_CHROMEOS) |
467 void MessageCenterSettingsController::CreateNotifierGroupForGuestLogin() { | 467 void MessageCenterSettingsController::CreateNotifierGroupForGuestLogin() { |
468 // Already created. | 468 // Already created. |
469 if (!notifier_groups_.empty()) | 469 if (!notifier_groups_.empty()) |
470 return; | 470 return; |
471 | 471 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 weak_factory_.GetWeakPtr())); | 547 weak_factory_.GetWeakPtr())); |
548 } | 548 } |
549 #endif | 549 #endif |
550 | 550 |
551 if (notify) { | 551 if (notify) { |
552 FOR_EACH_OBSERVER(message_center::NotifierSettingsObserver, | 552 FOR_EACH_OBSERVER(message_center::NotifierSettingsObserver, |
553 observers_, | 553 observers_, |
554 NotifierGroupChanged()); | 554 NotifierGroupChanged()); |
555 } | 555 } |
556 } | 556 } |
OLD | NEW |