Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 // Handles "goToSettings" message from the page. No arguments. | 49 // Handles "goToSettings" message from the page. No arguments. |
| 50 // This message is sent when the user clicks on the "Settings" link in the | 50 // This message is sent when the user clicks on the "Settings" link in the |
| 51 // sync confirmation dialog, which completes sign in but takes the user to the | 51 // sync confirmation dialog, which completes sign in but takes the user to the |
| 52 // sync settings page for configuration before starting sync. | 52 // sync settings page for configuration before starting sync. |
| 53 virtual void HandleGoToSettings(const base::ListValue* args); | 53 virtual void HandleGoToSettings(const base::ListValue* args); |
| 54 | 54 |
| 55 // Sets the profile picture shown in the dialog to the image at |url|. | 55 // Sets the profile picture shown in the dialog to the image at |url|. |
| 56 virtual void SetUserImageURL(const std::string& url); | 56 virtual void SetUserImageURL(const std::string& url); |
| 57 | 57 |
| 58 Browser* GetDesktopBrowser(); | 58 Browser* GetDesktopBrowser(); |
| 59 void CloseModalSigninWindow( | |
| 60 LoginUIService::SyncConfirmationUIClosedResults results); | |
| 61 | 59 |
| 60 void CloseModalSigninWindow(uint32_t result); | |
|
Evan Stade
2016/04/04 22:22:17
nit: comment?
Moe
2016/04/04 23:13:06
Done.
| |
| 61 | |
| 62 private: | |
| 62 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); | 63 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ | 66 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ |
| OLD | NEW |