Rename set_background to SetBackground

This commit is contained in:
Tony Ganch 2017-09-12 15:33:27 +00:00 committed by Cheng Zhao
parent d7e4e8d6cc
commit da04cbd4d8
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ void NativeBrowserViewViews::SetBounds(const gfx::Rect& bounds) {
void NativeBrowserViewViews::SetBackgroundColor(SkColor color) {
auto* view = GetInspectableWebContentsView()->GetView();
view->set_background(views::Background::CreateSolidBackground(color));
view->SetBackground(views::CreateSolidBackground(color));
}
// static

View file

@ -793,7 +793,7 @@ bool NativeWindowViews::IsKiosk() {
void NativeWindowViews::SetBackgroundColor(const std::string& color_name) {
// web views' background color.
SkColor background_color = ParseHexColor(color_name);
set_background(views::Background::CreateSolidBackground(background_color));
SetBackground(views::CreateSolidBackground(background_color));
#if defined(OS_WIN)
// Set the background color of native window.