summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profiles')
-rw-r--r--chrome/browser/profiles/avatar_menu_model.cc4
-rw-r--r--chrome/browser/profiles/avatar_menu_model.h2
-rw-r--r--chrome/browser/profiles/avatar_menu_model_observer.h4
3 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/profiles/avatar_menu_model.cc b/chrome/browser/profiles/avatar_menu_model.cc
index 512c1ce..408728d 100644
--- a/chrome/browser/profiles/avatar_menu_model.cc
+++ b/chrome/browser/profiles/avatar_menu_model.cc
@@ -70,7 +70,7 @@ AvatarMenuModel::Item::Item(size_t model_index, const gfx::Image& icon)
AvatarMenuModel::Item::~Item() {
}
-void AvatarMenuModel::SwichToProfile(size_t index) {
+void AvatarMenuModel::SwitchToProfile(size_t index) {
const Item& item = GetItemAt(index);
FilePath path = profile_info_->GetPathOfProfileAtIndex(item.model_index);
@@ -119,7 +119,7 @@ void AvatarMenuModel::RebuildMenu() {
items_.push_back(item);
}
- observer_->OnAvatarMenuModelChanged();
+ observer_->OnAvatarMenuModelChanged(this);
}
void AvatarMenuModel::ClearMenu() {
diff --git a/chrome/browser/profiles/avatar_menu_model.h b/chrome/browser/profiles/avatar_menu_model.h
index 7de6379..b371f2b 100644
--- a/chrome/browser/profiles/avatar_menu_model.h
+++ b/chrome/browser/profiles/avatar_menu_model.h
@@ -59,7 +59,7 @@ class AvatarMenuModel : public NotificationObserver {
// model:
// Opens a Browser with the specified profile in response to the user
// selecting an item.
- void SwichToProfile(size_t index);
+ void SwitchToProfile(size_t index);
// Opens the profile settings in response to clicking the edit button next to
// an item.
void EditProfile(size_t index);
diff --git a/chrome/browser/profiles/avatar_menu_model_observer.h b/chrome/browser/profiles/avatar_menu_model_observer.h
index 0643622..e6586c3 100644
--- a/chrome/browser/profiles/avatar_menu_model_observer.h
+++ b/chrome/browser/profiles/avatar_menu_model_observer.h
@@ -5,13 +5,15 @@
#ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_OBSERVER_H_
#define CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_OBSERVER_H_
+class AvatarMenuModel;
+
// Delegate interface for objects that want to be notified when the
// AvatarMenuModel changes.
class AvatarMenuModelObserver {
public:
virtual ~AvatarMenuModelObserver() {}
- virtual void OnAvatarMenuModelChanged() = 0;
+ virtual void OnAvatarMenuModelChanged(AvatarMenuModel* avatar_menu_model) = 0;
};
#endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_OBSERVER_H_