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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_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/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 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 fingerprint->SerializeToString(&proto_data); 2906 fingerprint->SerializeToString(&proto_data);
2907 base::Base64Encode(proto_data, &risk_data_); 2907 base::Base64Encode(proto_data, &risk_data_);
2908 2908
2909 SubmitWithWallet(); 2909 SubmitWithWallet();
2910 } 2910 }
2911 2911
2912 void AutofillDialogControllerImpl::OpenTabWithUrl(const GURL& url) { 2912 void AutofillDialogControllerImpl::OpenTabWithUrl(const GURL& url) {
2913 chrome::NavigateParams params( 2913 chrome::NavigateParams params(
2914 chrome::FindBrowserWithWebContents(web_contents()), 2914 chrome::FindBrowserWithWebContents(web_contents()),
2915 url, 2915 url,
2916 content::PAGE_TRANSITION_LINK); 2916 ui::PAGE_TRANSITION_LINK);
2917 params.disposition = NEW_FOREGROUND_TAB; 2917 params.disposition = NEW_FOREGROUND_TAB;
2918 chrome::Navigate(&params); 2918 chrome::Navigate(&params);
2919 } 2919 }
2920 2920
2921 DialogSection AutofillDialogControllerImpl::ActiveBillingSection() const { 2921 DialogSection AutofillDialogControllerImpl::ActiveBillingSection() const {
2922 return IsPayingWithWallet() ? SECTION_CC_BILLING : SECTION_BILLING; 2922 return IsPayingWithWallet() ? SECTION_CC_BILLING : SECTION_BILLING;
2923 } 2923 }
2924 2924
2925 bool AutofillDialogControllerImpl::IsEditingExistingData( 2925 bool AutofillDialogControllerImpl::IsEditingExistingData(
2926 DialogSection section) const { 2926 DialogSection section) const {
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
4157 view_->UpdateButtonStrip(); 4157 view_->UpdateButtonStrip();
4158 } 4158 }
4159 4159
4160 void AutofillDialogControllerImpl::FetchWalletCookie() { 4160 void AutofillDialogControllerImpl::FetchWalletCookie() {
4161 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); 4161 net::URLRequestContextGetter* request_context = profile_->GetRequestContext();
4162 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); 4162 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context));
4163 signin_helper_->StartWalletCookieValueFetch(); 4163 signin_helper_->StartWalletCookieValueFetch();
4164 } 4164 }
4165 4165
4166 } // namespace autofill 4166 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698