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

Unified Diff: chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h

Issue 12221111: Add a modal confirmation dialog to the enterprise profile sign-in flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more cleanup Created 7 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/webui/signin/profile_signin_confirmation_handler.h
diff --git a/chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h b/chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..56add6ef7c64d5d94aa3743019d1fe9edb65fd2d
--- /dev/null
+++ b/chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 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_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_
+
+#include "base/basictypes.h"
+#include "base/callback.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+class ProfileSigninConfirmationDialog;
+
+class ProfileSigninConfirmationHandler : public content::WebUIMessageHandler {
+ public:
+ explicit ProfileSigninConfirmationHandler(
Andrew T Wilson (Slow) 2013/02/10 20:47:26 nit: remove explicit.
dconnelly 2013/02/11 09:35:16 Done.
+ ProfileSigninConfirmationDialog* dialog,
+ const base::Closure& cancel_signin,
+ const base::Closure& signin_with_new_profile,
+ const base::Closure& continue_signin);
+ virtual ~ProfileSigninConfirmationHandler();
+ virtual void RegisterMessages() OVERRIDE;
+
+ private:
+ void OnCancelButtonClicked(const base::ListValue* args);
+ void OnCreateProfileClicked(const base::ListValue* args);
+ void OnContinueButtonClicked(const base::ListValue* args);
+
+ // Deletes itself.
Andrew T Wilson (Slow) 2013/02/10 20:47:26 Typically, if you don't own an object (like this o
dconnelly 2013/02/11 09:35:16 Done.
+ ProfileSigninConfirmationDialog* dialog_;
+
+ base::Closure cancel_signin_;
+ base::Closure signin_with_new_profile_;
+ base::Closure continue_signin_;
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698