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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/android/autofill/autofill_dialog_controller_android. h" 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android. h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/prefs/pref_service.h"
17 #include "base/prefs/scoped_user_pref_update.h"
18 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
19 #include "chrome/browser/autofill/personal_data_manager_factory.h" 17 #include "chrome/browser/autofill/personal_data_manager_factory.h"
20 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/profiles/profile_manager.h" 20 #include "chrome/browser/profiles/profile_manager.h"
23 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h" 21 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h"
24 #include "chrome/browser/ui/android/view_android_helper.h" 22 #include "chrome/browser/ui/android/view_android_helper.h"
25 #include "chrome/browser/ui/autofill/autofill_dialog_common.h" 23 #include "chrome/browser/ui/autofill/autofill_dialog_common.h"
26 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
27 #include "chrome/common/url_constants.h" 25 #include "chrome/common/url_constants.h"
28 #include "components/autofill/content/browser/wallet/full_wallet.h" 26 #include "components/autofill/content/browser/wallet/full_wallet.h"
29 #include "components/autofill/core/browser/autofill_metrics.h" 27 #include "components/autofill/core/browser/autofill_metrics.h"
30 #include "components/autofill/core/browser/autofill_profile.h" 28 #include "components/autofill/core/browser/autofill_profile.h"
31 #include "components/autofill/core/browser/autofill_type.h" 29 #include "components/autofill/core/browser/autofill_type.h"
32 #include "components/autofill/core/browser/credit_card.h" 30 #include "components/autofill/core/browser/credit_card.h"
33 #include "components/autofill/core/browser/detail_input.h" 31 #include "components/autofill/core/browser/detail_input.h"
34 #include "components/autofill/core/browser/dialog_section.h" 32 #include "components/autofill/core/browser/dialog_section.h"
35 #include "components/autofill/core/browser/field_types.h" 33 #include "components/autofill/core/browser/field_types.h"
36 #include "components/autofill/core/browser/personal_data_manager.h" 34 #include "components/autofill/core/browser/personal_data_manager.h"
37 #include "components/autofill/core/browser/server_field_types_util.h" 35 #include "components/autofill/core/browser/server_field_types_util.h"
38 #include "components/autofill/core/common/form_data.h" 36 #include "components/autofill/core/common/form_data.h"
39 #include "components/pref_registry/pref_registry_syncable.h" 37 #include "components/pref_registry/pref_registry_syncable.h"
38 #include "components/prefs/pref_service.h"
39 #include "components/prefs/scoped_user_pref_update.h"
40 #include "content/public/browser/navigation_controller.h" 40 #include "content/public/browser/navigation_controller.h"
41 #include "content/public/browser/navigation_details.h" 41 #include "content/public/browser/navigation_details.h"
42 #include "content/public/browser/navigation_entry.h" 42 #include "content/public/browser/navigation_entry.h"
43 #include "content/public/browser/web_contents.h" 43 #include "content/public/browser/web_contents.h"
44 #include "jni/AutofillDialogControllerAndroid_jni.h" 44 #include "jni/AutofillDialogControllerAndroid_jni.h"
45 #include "ui/android/view_android.h" 45 #include "ui/android/view_android.h"
46 #include "ui/android/window_android.h" 46 #include "ui/android/window_android.h"
47 #include "ui/base/models/combobox_model.h" 47 #include "ui/base/models/combobox_model.h"
48 #include "ui/base/models/menu_model.h" 48 #include "ui/base/models/menu_model.h"
49 #include "ui/gfx/android/java_bitmap.h" 49 #include "ui/gfx/android/java_bitmap.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 531
532 void AutofillDialogControllerAndroid::LogOnCancelMetrics() { 532 void AutofillDialogControllerAndroid::LogOnCancelMetrics() {
533 AutofillMetrics::LogDialogUiDuration( 533 AutofillMetrics::LogDialogUiDuration(
534 base::Time::Now() - dialog_shown_timestamp_, 534 base::Time::Now() - dialog_shown_timestamp_,
535 AutofillMetrics::DIALOG_CANCELED); 535 AutofillMetrics::DIALOG_CANCELED);
536 536
537 AutofillMetrics::LogDialogUiEvent(AutofillMetrics::DIALOG_UI_CANCELED); 537 AutofillMetrics::LogDialogUiEvent(AutofillMetrics::DIALOG_UI_CANCELED);
538 } 538 }
539 539
540 } // namespace autofill 540 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698