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

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_handler.cc

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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
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(&params); 124 chrome::Navigate(&params);
125 125
126 web_ui()->CallJavascriptFunction("inline.login.closeDialog"); 126 web_ui()->CallJavascriptFunction("inline.login.closeDialog");
127 } 127 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698