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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.h

Issue 895803003: [Profiles] Remove the NotificationService from the ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cait nit Created 5 years, 10 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/frame/opaque_browser_frame_view.h
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.h b/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
index 2edd134ac6ed33664e2b5df1e8b3b7a74e6314fd..8831998ce12c7631f854214a40f52aa8122f2c2c 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
@@ -11,8 +11,6 @@
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
#include "chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_delegate.h"
#include "chrome/browser/ui/views/tab_icon_view_model.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/menu_button_listener.h"
#include "ui/views/window/non_client_view.h"
@@ -30,7 +28,6 @@ class Label;
}
class OpaqueBrowserFrameView : public BrowserNonClientFrameView,
- public content::NotificationObserver,
public views::ButtonListener,
public views::MenuButtonListener,
public chrome::TabIconViewModel,
@@ -72,10 +69,13 @@ class OpaqueBrowserFrameView : public BrowserNonClientFrameView,
bool ShouldTabIconViewAnimate() const override;
gfx::ImageSkia GetFaviconForTabIconView() override;
- // content::NotificationObserver implementation:
- void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) override;
+ // ProfileInfoCacheObserver implementation:
+ 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;
// OpaqueBrowserFrameViewLayoutDelegate implementation:
bool ShouldShowWindowIcon() const override;
@@ -171,8 +171,6 @@ class OpaqueBrowserFrameView : public BrowserNonClientFrameView,
TabIconView* window_icon_;
views::Label* window_title_;
- content::NotificationRegistrar registrar_;
-
// Background painter for the window frame.
scoped_ptr<views::FrameBackground> frame_background_;

Powered by Google App Engine
This is Rietveld 408576698