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

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.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_impl.h" 5 #include "chrome/browser/ui/webui/signin/inline_login_handler_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 #ifndef NDEBUG 233 #ifndef NDEBUG
234 return false; 234 return false;
235 #else 235 #else
236 return true; 236 return true;
237 #endif 237 #endif
238 } 238 }
239 239
240 void InlineLoginHandlerImpl::DidCommitProvisionalLoadForFrame( 240 void InlineLoginHandlerImpl::DidCommitProvisionalLoadForFrame(
241 content::RenderFrameHost* render_frame_host, 241 content::RenderFrameHost* render_frame_host,
242 const GURL& url, 242 const GURL& url,
243 content::PageTransition transition_type) { 243 ui::PageTransition transition_type) {
244 if (!web_contents()) 244 if (!web_contents())
245 return; 245 return;
246 246
247 // Returns early if this is not a gaia iframe navigation. 247 // Returns early if this is not a gaia iframe navigation.
248 const GURL kGaiaExtOrigin( 248 const GURL kGaiaExtOrigin(
249 "chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/"); 249 "chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/");
250 content::RenderFrameHost* gaia_iframe = InlineLoginUI::GetAuthIframe( 250 content::RenderFrameHost* gaia_iframe = InlineLoginUI::GetAuthIframe(
251 web_contents(), kGaiaExtOrigin, "signin-frame"); 251 web_contents(), kGaiaExtOrigin, "signin-frame");
252 if (render_frame_host != gaia_iframe) 252 if (render_frame_host != gaia_iframe)
253 return; 253 return;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 } 451 }
452 } 452 }
453 453
454 if (show_account_management) { 454 if (show_account_management) {
455 browser->window()->ShowAvatarBubbleFromAvatarButton( 455 browser->window()->ShowAvatarBubbleFromAvatarButton(
456 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, 456 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
457 signin::ManageAccountsParams()); 457 signin::ManageAccountsParams());
458 } 458 }
459 } 459 }
460 } 460 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.h ('k') | chrome/browser/ui/webui/sync_setup_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698