| 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 <limits.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/values.h" | 13 #include "base/values.h" |
| 12 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" | 15 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/signin/signin_promo.h" | 17 #include "chrome/browser/signin/signin_promo.h" |
| 16 #include "chrome/browser/ui/browser_navigator.h" | 18 #include "chrome/browser/ui/browser_navigator.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 228 |
| 227 chrome::NavigateParams params( | 229 chrome::NavigateParams params( |
| 228 profile, | 230 profile, |
| 229 net::AppendOrReplaceQueryParameter( | 231 net::AppendOrReplaceQueryParameter( |
| 230 main_frame_url, signin::kSignInPromoQueryKeyConstrained, "0"), | 232 main_frame_url, signin::kSignInPromoQueryKeyConstrained, "0"), |
| 231 ui::PAGE_TRANSITION_AUTO_TOPLEVEL); | 233 ui::PAGE_TRANSITION_AUTO_TOPLEVEL); |
| 232 chrome::Navigate(¶ms); | 234 chrome::Navigate(¶ms); |
| 233 | 235 |
| 234 web_ui()->CallJavascriptFunction("inline.login.closeDialog"); | 236 web_ui()->CallJavascriptFunction("inline.login.closeDialog"); |
| 235 } | 237 } |
| OLD | NEW |