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

Side by Side Diff: trunk/src/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 111883004: Revert 239921 "Revert 239759 "The comment in base64.h implies th..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | Annotate | Revision Log
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/autofill/autofill_dialog_controller_impl.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 base::Bind(&AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData, 2613 base::Bind(&AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData,
2614 weak_ptr_factory_.GetWeakPtr())); 2614 weak_ptr_factory_.GetWeakPtr()));
2615 } 2615 }
2616 2616
2617 void AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData( 2617 void AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData(
2618 scoped_ptr<risk::Fingerprint> fingerprint) { 2618 scoped_ptr<risk::Fingerprint> fingerprint) {
2619 DCHECK(AreLegalDocumentsCurrent()); 2619 DCHECK(AreLegalDocumentsCurrent());
2620 2620
2621 std::string proto_data; 2621 std::string proto_data;
2622 fingerprint->SerializeToString(&proto_data); 2622 fingerprint->SerializeToString(&proto_data);
2623 bool success = base::Base64Encode(proto_data, &risk_data_); 2623 base::Base64Encode(proto_data, &risk_data_);
2624 DCHECK(success);
2625 2624
2626 SubmitWithWallet(); 2625 SubmitWithWallet();
2627 } 2626 }
2628 2627
2629 void AutofillDialogControllerImpl::OpenTabWithUrl(const GURL& url) { 2628 void AutofillDialogControllerImpl::OpenTabWithUrl(const GURL& url) {
2630 chrome::NavigateParams params( 2629 chrome::NavigateParams params(
2631 chrome::FindBrowserWithWebContents(web_contents()), 2630 chrome::FindBrowserWithWebContents(web_contents()),
2632 url, 2631 url,
2633 content::PAGE_TRANSITION_LINK); 2632 content::PAGE_TRANSITION_LINK);
2634 params.disposition = NEW_FOREGROUND_TAB; 2633 params.disposition = NEW_FOREGROUND_TAB;
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 view_->UpdateButtonStrip(); 3547 view_->UpdateButtonStrip();
3549 } 3548 }
3550 3549
3551 void AutofillDialogControllerImpl::FetchWalletCookie() { 3550 void AutofillDialogControllerImpl::FetchWalletCookie() {
3552 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); 3551 net::URLRequestContextGetter* request_context = profile_->GetRequestContext();
3553 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); 3552 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context));
3554 signin_helper_->StartWalletCookieValueFetch(); 3553 signin_helper_->StartWalletCookieValueFetch();
3555 } 3554 }
3556 3555
3557 } // namespace autofill 3556 } // namespace autofill
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/ui/ash/screenshot_taker.cc ('k') | trunk/src/chrome/browser/ui/certificate_dialogs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698