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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.cc

Issue 2576143002: Tweak payment autofill disabled message in form-not-secure (Closed)
Patch Set: fix comment wrapping Created 4 years 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 "components/autofill/core/browser/autofill_external_delegate.h" 5 #include "components/autofill/core/browser/autofill_external_delegate.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 17 matching lines...) Expand all
28 28
29 namespace autofill { 29 namespace autofill {
30 30
31 namespace { 31 namespace {
32 32
33 // Returns true if the suggestion entry is an Autofill warning message. 33 // Returns true if the suggestion entry is an Autofill warning message.
34 // Warning messages should display on top of suggestion list. 34 // Warning messages should display on top of suggestion list.
35 bool IsAutofillWarningEntry(int frontend_id) { 35 bool IsAutofillWarningEntry(int frontend_id) {
36 return frontend_id == 36 return frontend_id ==
37 POPUP_ITEM_ID_INSECURE_CONTEXT_PAYMENT_DISABLED_MESSAGE || 37 POPUP_ITEM_ID_INSECURE_CONTEXT_PAYMENT_DISABLED_MESSAGE ||
38 frontend_id == POPUP_ITEM_ID_PAYMENT_DISABLED_MESSAGE ||
38 frontend_id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE; 39 frontend_id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE;
39 } 40 }
40 41
41 } // anonymous namespace 42 } // anonymous namespace
42 43
43 AutofillExternalDelegate::AutofillExternalDelegate(AutofillManager* manager, 44 AutofillExternalDelegate::AutofillExternalDelegate(AutofillManager* manager,
44 AutofillDriver* driver) 45 AutofillDriver* driver)
45 : manager_(manager), 46 : manager_(manager),
46 driver_(driver), 47 driver_(driver),
47 query_id_(0), 48 query_id_(0),
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 suggestions->insert(suggestions->begin(), data_list_values_.size(), 377 suggestions->insert(suggestions->begin(), data_list_values_.size(),
377 Suggestion()); 378 Suggestion());
378 for (size_t i = 0; i < data_list_values_.size(); i++) { 379 for (size_t i = 0; i < data_list_values_.size(); i++) {
379 (*suggestions)[i].value = data_list_values_[i]; 380 (*suggestions)[i].value = data_list_values_[i];
380 (*suggestions)[i].label = data_list_labels_[i]; 381 (*suggestions)[i].label = data_list_labels_[i];
381 (*suggestions)[i].frontend_id = POPUP_ITEM_ID_DATALIST_ENTRY; 382 (*suggestions)[i].frontend_id = POPUP_ITEM_ID_DATALIST_ENTRY;
382 } 383 }
383 } 384 }
384 385
385 } // namespace autofill 386 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698