OLD | NEW |
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/android/autofill/autofill_dialog_controller_android.
h" | 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android.
h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 for (size_t i = 0; i < form_structure_.field_count(); ++i) { | 447 for (size_t i = 0; i < form_structure_.field_count(); ++i) { |
448 AutofillType type = form_structure_.field(i)->Type(); | 448 AutofillType type = form_structure_.field(i)->Type(); |
449 if (common::IsCreditCardType(type.GetStorableType())) | 449 if (common::IsCreditCardType(type.GetStorableType())) |
450 return true; | 450 return true; |
451 } | 451 } |
452 | 452 |
453 return false; | 453 return false; |
454 } | 454 } |
455 | 455 |
456 bool AutofillDialogControllerAndroid::TransmissionWillBeSecure() const { | 456 bool AutofillDialogControllerAndroid::TransmissionWillBeSecure() const { |
457 return source_url_.SchemeIs(chrome::kHttpsScheme); | 457 return source_url_.SchemeIs(content::kHttpsScheme); |
458 } | 458 } |
459 | 459 |
460 void AutofillDialogControllerAndroid::SetAutocheckoutState( | 460 void AutofillDialogControllerAndroid::SetAutocheckoutState( |
461 AutocheckoutState autocheckout_state) { | 461 AutocheckoutState autocheckout_state) { |
462 if (autocheckout_state_ == autocheckout_state) | 462 if (autocheckout_state_ == autocheckout_state) |
463 return; | 463 return; |
464 | 464 |
465 autocheckout_state_ = autocheckout_state; | 465 autocheckout_state_ = autocheckout_state; |
466 } | 466 } |
467 | 467 |
(...skipping 11 matching lines...) Expand all Loading... |
479 GetMetricLogger().LogDialogUiDuration( | 479 GetMetricLogger().LogDialogUiDuration( |
480 base::Time::Now() - dialog_shown_timestamp_, | 480 base::Time::Now() - dialog_shown_timestamp_, |
481 GetDialogType(), | 481 GetDialogType(), |
482 AutofillMetrics::DIALOG_CANCELED); | 482 AutofillMetrics::DIALOG_CANCELED); |
483 | 483 |
484 GetMetricLogger().LogDialogUiEvent( | 484 GetMetricLogger().LogDialogUiEvent( |
485 GetDialogType(), AutofillMetrics::DIALOG_UI_CANCELED); | 485 GetDialogType(), AutofillMetrics::DIALOG_UI_CANCELED); |
486 } | 486 } |
487 | 487 |
488 } // namespace autofill | 488 } // namespace autofill |
OLD | NEW |