Index: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
index 87f0e4928b43b07d08370d81a96f674b076e4ee3..eec0f6967981ea0e4525b483cfd4c49eeecb3e57 100644 |
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
@@ -8,7 +8,6 @@ |
#include "base/single_thread_task_runner.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/thread_task_runner_handle.h" |
-#include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
#include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h" |
#include "chrome/browser/ui/views/autofill/decorated_textfield.h" |
#include "chrome/browser/ui/views/autofill/tooltip_icon.h" |
@@ -42,12 +41,20 @@ |
namespace autofill { |
+namespace { |
+ |
// The number of pixels of blank space on the outer horizontal edges of the |
// dialog. |
const int kEdgePadding = 19; |
SkColor kGreyTextColor = SkColorSetRGB(0x64, 0x64, 0x64); |
+SkColor const kWarningColor = gfx::kGoogleRed700; |
+SkColor const kLightShadingColor = SkColorSetARGB(7, 0, 0, 0); |
+SkColor const kSubtleBorderColor = SkColorSetARGB(10, 0, 0, 0); |
+ |
+} // namespace |
+ |
CardUnmaskPromptView* CreateCardUnmaskPromptView( |
CardUnmaskPromptController* controller, |
content::WebContents* web_contents) { |
@@ -452,8 +459,8 @@ void CardUnmaskPromptViews::InitIfNecessary() { |
error_icon_ = new views::ImageView(); |
error_icon_->SetVisible(false); |
- error_icon_->SetImage(gfx::CreateVectorIcon(gfx::VectorIconId::WARNING, 16, |
- gfx::kGoogleRed700)); |
+ error_icon_->SetImage( |
+ gfx::CreateVectorIcon(gfx::VectorIconId::WARNING, 16, kWarningColor)); |
temporary_error->AddChildView(error_icon_); |
// Reserve vertical space for the error label, assuming it's one line. |