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

Unified Diff: chrome/browser/ui/avatar_button_error_controller_delegate.h

Issue 2179283002: Refactored signin/sync error controllers for the avatar button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uninitialized ptr Created 4 years, 4 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/avatar_button_error_controller_delegate.h
diff --git a/chrome/browser/ui/avatar_button_error_controller_delegate.h b/chrome/browser/ui/avatar_button_error_controller_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..8550f89d953c3cb1c907cc17e56f4fdd30cbeb73
--- /dev/null
+++ b/chrome/browser/ui/avatar_button_error_controller_delegate.h
@@ -0,0 +1,20 @@
+// Copyright 2016 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_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_
+#define CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_
+
+// Delegate that allows AvatarButtonErrorController to communicate to
+// NewAvatarButton.
+class AvatarButtonErrorControllerDelegate {
+ public:
+ // Called when the signin/sync errors that should be exposed in the avatar
+ // button change.
+ virtual void OnAvatarErrorChanged() = 0;
+
+ protected:
+ virtual ~AvatarButtonErrorControllerDelegate() {}
+};
+
+#endif // CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/avatar_button_error_controller.cc ('k') | chrome/browser/ui/views/profiles/new_avatar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698