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

Unified Diff: chrome/browser/ui/views/profiles/avatar_base_button.h

Issue 1139943002: Revert of Refactor the avatar button/icon class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/profiles/avatar_base_button.h
diff --git a/chrome/browser/ui/views/profiles/avatar_base_button.h b/chrome/browser/ui/views/profiles/avatar_base_button.h
deleted file mode 100644
index d2d8ab546ea9d261336e4544d79de2d1f875776a..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/profiles/avatar_base_button.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BASE_BUTTON_H_
-#define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BASE_BUTTON_H_
-
-#include "chrome/browser/profiles/profile_info_cache_observer.h"
-
-class Browser;
-
-// This view manages the button that sits in the top of the window frame and
-// displays the active profile's info when using multi-profiles.
-class AvatarBaseButton : public ProfileInfoCacheObserver {
- public:
- explicit AvatarBaseButton(Browser* browser);
- ~AvatarBaseButton() override;
-
- protected:
- Browser* browser() const { return browser_; }
-
- // Called when the profile info cache has changed, which means we might
- // have to update the icon/text of the button.
- virtual void Update() = 0;
-
- private:
- // ProfileInfoCacheObserver:
- void OnProfileAdded(const base::FilePath& profile_path) override;
- void OnProfileWasRemoved(const base::FilePath& profile_path,
- const base::string16& profile_name) override;
- void OnProfileNameChanged(const base::FilePath& profile_path,
- const base::string16& old_profile_name) override;
- void OnProfileAvatarChanged(const base::FilePath& profile_path) override;
- void OnProfileSupervisedUserIdChanged(
- const base::FilePath& profile_path) override;
-
- Browser* browser_;
-
- DISALLOW_COPY_AND_ASSIGN(AvatarBaseButton);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BASE_BUTTON_H_
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view.cc ('k') | chrome/browser/ui/views/profiles/avatar_base_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698