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

Unified Diff: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm

Issue 1931043002: Remove requestAutocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
diff --git a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
index dfee20cc03c2496cf6d1af79f4354bfd33fd4992..aad8e68f3430a891dd6690d8292fe5737eb24cc0 100644
--- a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
+++ b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
@@ -6,7 +6,6 @@
#include "base/message_loop/message_loop.h"
#include "base/strings/sys_string_conversions.h"
#include "chrome/browser/ui/autofill/autofill_dialog_models.h"
-#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
#include "chrome/browser/ui/chrome_style.h"
#import "chrome/browser/ui/cocoa/autofill/autofill_pop_up_button.h"
#import "chrome/browser/ui/cocoa/autofill/autofill_textfield.h"
@@ -29,6 +28,7 @@
#import "ui/base/cocoa/controls/hyperlink_button_cell.h"
#include "ui/base/cocoa/window_size_constants.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/gfx/color_palette.h"
#include "ui/native_theme/native_theme_mac.h"
namespace {
@@ -304,8 +304,8 @@ void CardUnmaskPromptViewBridge::PerformClose() {
if (!text.empty()) {
if (!permanentErrorBox_) {
permanentErrorBox_ = [CardUnmaskPromptViewCocoa createPlainBox];
- [permanentErrorBox_ setFillColor:skia::SkColorToCalibratedNSColor(
- autofill::kWarningColor)];
+ [permanentErrorBox_
+ setFillColor:skia::SkColorToCalibratedNSColor(gfx::kGoogleRed700)];
[permanentErrorBox_
setContentViewMargins:NSMakeSize(kPermanentErrorHorizontalPadding,
kPermanentErrorVerticalPadding)];
@@ -712,7 +712,7 @@ void CardUnmaskPromptViewBridge::PerformClose() {
// Add error message label.
errorLabel_.reset([constrained_window::CreateLabel() retain]);
[errorLabel_
- setTextColor:skia::SkColorToCalibratedNSColor(autofill::kWarningColor)];
+ setTextColor:skia::SkColorToCalibratedNSColor(gfx::kGoogleRed700)];
[mainView addSubview:errorLabel_];
// Add cancel button.

Powered by Google App Engine
This is Rietveld 408576698