| Index: chrome/browser/ui/views/location_bar/content_setting_image_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
|
| index 28410ee8072cf800df647fa337c5e8bba1b7486d..d0886ba4a1774df939203ed4c31b4f3cff798586 100644
|
| --- a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
|
| @@ -15,6 +15,7 @@
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/resource/material_design/material_design_controller.h"
|
| #include "ui/base/theme_provider.h"
|
| +#include "ui/gfx/color_palette.h"
|
| #include "ui/gfx/color_utils.h"
|
| #include "ui/views/controls/image_view.h"
|
| #include "ui/views/controls/label.h"
|
| @@ -51,13 +52,7 @@ ContentSettingImageView::ContentSettingImageView(
|
| pause_animation_(false),
|
| pause_animation_state_(0.0),
|
| bubble_widget_(NULL) {
|
| - if (ui::MaterialDesignController::IsModeMaterial()) {
|
| - // The insets for IDR_OMNIBOX_CONTENT_SETTING_BUBBLE for which to perfom
|
| - // nine-slicing.
|
| - static const int kImageInset = 4;
|
| - gfx::Insets insets(kImageInset, kImageInset, kImageInset, kImageInset);
|
| - SetBackgroundImageWithInsets(IDR_OMNIBOX_CONTENT_SETTING_BUBBLE, insets);
|
| - } else {
|
| + if (!ui::MaterialDesignController::IsModeMaterial()) {
|
| static const int kBackgroundImages[] =
|
| IMAGE_GRID(IDR_OMNIBOX_CONTENT_SETTING_BUBBLE);
|
| SetBackgroundImageGrid(kBackgroundImages);
|
| @@ -132,6 +127,15 @@ double ContentSettingImageView::WidthMultiplier() const {
|
| return size_fraction;
|
| }
|
|
|
| +SkColor ContentSettingImageView::GetTextColor() const {
|
| + return GetNativeTheme()->GetSystemColor(
|
| + ui::NativeTheme::kColorId_TextfieldDefaultColor);
|
| +}
|
| +
|
| +SkColor ContentSettingImageView::GetBorderColor() const {
|
| + return gfx::kGoogleYellow700;
|
| +}
|
| +
|
| void ContentSettingImageView::AnimationEnded(const gfx::Animation* animation) {
|
| slide_animator_.Reset();
|
| if (!pause_animation_) {
|
|
|