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

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

Issue 23112033: content: Move kHttpsScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | 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 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 for (size_t i = 0; i < form_structure_.field_count(); ++i) { 2314 for (size_t i = 0; i < form_structure_.field_count(); ++i) {
2315 AutofillType type = form_structure_.field(i)->Type(); 2315 AutofillType type = form_structure_.field(i)->Type();
2316 if (common::IsCreditCardType(type.GetStorableType())) 2316 if (common::IsCreditCardType(type.GetStorableType()))
2317 return true; 2317 return true;
2318 } 2318 }
2319 2319
2320 return false; 2320 return false;
2321 } 2321 }
2322 2322
2323 bool AutofillDialogControllerImpl::TransmissionWillBeSecure() const { 2323 bool AutofillDialogControllerImpl::TransmissionWillBeSecure() const {
2324 return source_url_.SchemeIs(chrome::kHttpsScheme); 2324 return source_url_.SchemeIs(content::kHttpsScheme);
2325 } 2325 }
2326 2326
2327 void AutofillDialogControllerImpl::ShowNewCreditCardBubble( 2327 void AutofillDialogControllerImpl::ShowNewCreditCardBubble(
2328 scoped_ptr<CreditCard> new_card, 2328 scoped_ptr<CreditCard> new_card,
2329 scoped_ptr<AutofillProfile> billing_profile) { 2329 scoped_ptr<AutofillProfile> billing_profile) {
2330 #if !defined(OS_ANDROID) 2330 #if !defined(OS_ANDROID)
2331 NewCreditCardBubbleController::Show(profile(), 2331 NewCreditCardBubbleController::Show(profile(),
2332 new_card.Pass(), 2332 new_card.Pass(),
2333 billing_profile.Pass()); 2333 billing_profile.Pass());
2334 #endif 2334 #endif
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
3496 } 3496 }
3497 #if !defined(OS_ANDROID) 3497 #if !defined(OS_ANDROID)
3498 GeneratedCreditCardBubbleController::Show( 3498 GeneratedCreditCardBubbleController::Show(
3499 web_contents(), 3499 web_contents(),
3500 backing_last_four, 3500 backing_last_four,
3501 full_wallet_->TypeAndLastFourDigits()); 3501 full_wallet_->TypeAndLastFourDigits());
3502 #endif 3502 #endif
3503 } 3503 }
3504 3504
3505 } // namespace autofill 3505 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/webstore_provider.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698