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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_dialog_controller_android.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, 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 | 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/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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service.cc ('k') | chrome/browser/ui/app_list/search/webstore_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698