| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/ui/webui/signin/inline_login_handler.h" | 5 #include "chrome/browser/ui/webui/signin/inline_login_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // and show the account management view of the avatar menu upon completion. | 113 // and show the account management view of the avatar menu upon completion. |
| 114 main_frame_url = net::AppendOrReplaceQueryParameter( | 114 main_frame_url = net::AppendOrReplaceQueryParameter( |
| 115 main_frame_url, signin::kSignInPromoQueryKeyAutoClose, "1"); | 115 main_frame_url, signin::kSignInPromoQueryKeyAutoClose, "1"); |
| 116 main_frame_url = net::AppendOrReplaceQueryParameter( | 116 main_frame_url = net::AppendOrReplaceQueryParameter( |
| 117 main_frame_url, signin::kSignInPromoQueryKeyShowAccountManagement, "1"); | 117 main_frame_url, signin::kSignInPromoQueryKeyShowAccountManagement, "1"); |
| 118 | 118 |
| 119 chrome::NavigateParams params( | 119 chrome::NavigateParams params( |
| 120 Profile::FromWebUI(web_ui()), | 120 Profile::FromWebUI(web_ui()), |
| 121 net::AppendOrReplaceQueryParameter( | 121 net::AppendOrReplaceQueryParameter( |
| 122 main_frame_url, signin::kSignInPromoQueryKeyConstrained, "0"), | 122 main_frame_url, signin::kSignInPromoQueryKeyConstrained, "0"), |
| 123 content::PAGE_TRANSITION_AUTO_TOPLEVEL); | 123 ui::PAGE_TRANSITION_AUTO_TOPLEVEL); |
| 124 chrome::Navigate(¶ms); | 124 chrome::Navigate(¶ms); |
| 125 | 125 |
| 126 web_ui()->CallJavascriptFunction("inline.login.closeDialog"); | 126 web_ui()->CallJavascriptFunction("inline.login.closeDialog"); |
| 127 } | 127 } |
| OLD | NEW |