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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_sync_starter.cc

Issue 2255413002: [Signin Error Dialog] (3/3) Added the triggering code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Broke down the CL Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync/one_click_signin_sync_starter.h" 5 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 start_mode_ != CONFIGURE_SYNC_FIRST) { 513 start_mode_ != CONFIGURE_SYNC_FIRST) {
514 LoadContinueUrl(); 514 LoadContinueUrl();
515 } 515 }
516 516
517 delete this; 517 delete this;
518 } 518 }
519 519
520 void OneClickSigninSyncStarter::DisplayFinalConfirmationBubble( 520 void OneClickSigninSyncStarter::DisplayFinalConfirmationBubble(
521 const base::string16& custom_message) { 521 const base::string16& custom_message) {
522 browser_ = EnsureBrowser(browser_, profile_); 522 browser_ = EnsureBrowser(browser_, profile_);
523 LoginUIServiceFactory::GetForProfile(browser_->profile())-> 523 LoginUIServiceFactory::GetForProfile(browser_->profile())
524 DisplayLoginResult(browser_, custom_message); 524 ->DisplayLoginResult(browser_, custom_message, base::string16());
525 } 525 }
526 526
527 void OneClickSigninSyncStarter::DisplayModalSyncConfirmationWindow() { 527 void OneClickSigninSyncStarter::DisplayModalSyncConfirmationWindow() {
528 browser_ = EnsureBrowser(browser_, profile_); 528 browser_ = EnsureBrowser(browser_, profile_);
529 browser_->ShowModalSyncConfirmationWindow(); 529 browser_->ShowModalSyncConfirmationWindow();
530 } 530 }
531 531
532 // static 532 // static
533 Browser* OneClickSigninSyncStarter::EnsureBrowser(Browser* browser, 533 Browser* OneClickSigninSyncStarter::EnsureBrowser(Browser* browser,
534 Profile* profile) { 534 Profile* profile) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 false /* user_gesture */); 642 false /* user_gesture */);
643 } 643 }
644 644
645 void OneClickSigninSyncStarter::LoadContinueUrl() { 645 void OneClickSigninSyncStarter::LoadContinueUrl() {
646 web_contents()->GetController().LoadURL( 646 web_contents()->GetController().LoadURL(
647 continue_url_, 647 continue_url_,
648 content::Referrer(), 648 content::Referrer(),
649 ui::PAGE_TRANSITION_AUTO_TOPLEVEL, 649 ui::PAGE_TRANSITION_AUTO_TOPLEVEL,
650 std::string()); 650 std::string());
651 } 651 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698