Download home tab style refresh

This CL tries to update the tab style used in download home to match
with rest of chrome.

Bug: 951819
Change-Id: Id9eab9209ae12e47fe5d5a4808a0f55c9c9cbaa8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1573094
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652280}
diff --git a/chrome/android/java/res/drawable/download_home_tabs_bg.xml b/chrome/android/java/res/drawable/download_home_tabs_bg.xml
deleted file mode 100644
index a99c3e2..0000000
--- a/chrome/android/java/res/drawable/download_home_tabs_bg.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright 2018 The Chromium Authors. All rights reserved.
-     Use of this source code is governed by a BSD-style license that can be
-     found in the LICENSE file.
--->
-
-<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
-    <item>
-        <shape android:shape="rectangle">
-            <solid android:color="@color/hairline_stroke_color" />
-        </shape>
-    </item>
-    <item android:bottom="1dp">
-        <shape android:shape="rectangle">
-            <solid android:color="@color/modern_primary_color" />
-        </shape>
-    </item>
-</layer-list>
diff --git a/chrome/android/java/res_download/layout/download_home_tabs.xml b/chrome/android/java/res_download/layout/download_home_tabs.xml
index 43d2487..42628a3 100644
--- a/chrome/android/java/res_download/layout/download_home_tabs.xml
+++ b/chrome/android/java/res_download/layout/download_home_tabs.xml
@@ -10,37 +10,40 @@
     android:layout_height="wrap_content"
     android:orientation="vertical">
 
-    <android.support.design.widget.TabLayout
-        android:id="@+id/tabs"
+    <android.support.design.widget.AppBarLayout
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:minHeight="40dp"
-        app:tabMinWidth="150dp"
-        app:tabMaxWidth="2000dp"
-        app:tabMode="fixed"
-        app:tabGravity="center"
-        app:tabTextAppearance="@style/TextAppearance.BlackLink"
-        app:tabIndicatorColor="@color/light_active_color"
-        app:tabSelectedTextColor="@color/tab_layout_selected_tab_color"
-        android:background="@drawable/download_home_tabs_bg">
+        android:layout_height="wrap_content">
 
-        <android.support.design.widget.TabItem
-            android:id="@+id/files_tab"
-            android:layout_width="wrap_content"
+        <android.support.design.widget.TabLayout
+            android:id="@+id/tabs"
+            android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:text="@string/download_manager_files_tab" />
+            app:tabMaxWidth="0dp"
+            app:tabMode="fixed"
+            app:tabGravity="fill"
+            app:tabTextColor="@color/default_text_color_tertiary"
+            app:tabSelectedTextColor="@color/tab_layout_selected_tab_color"
+            android:background="@color/modern_primary_color">
 
-        <android.support.design.widget.TabItem
-            android:id="@+id/prefetch_tab"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="@string/ntp_article_suggestions_section_header" />
+            <android.support.design.widget.TabItem
+                android:id="@+id/files_tab"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/download_manager_files_tab"/>
 
-    </android.support.design.widget.TabLayout>
+            <android.support.design.widget.TabItem
+                android:id="@+id/prefetch_tab"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/ntp_article_suggestions_section_header"/>
+
+        </android.support.design.widget.TabLayout>
+
+    </android.support.design.widget.AppBarLayout>
 
     <FrameLayout
         android:id="@+id/content_container"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:paddingTop="16dp" />
+        android:paddingTop="16dp"/>
 </LinearLayout>