Using ViewStub to defer the inflation of GeolocationPermissionsPrompt until we first show it.
This should shave 5% of Browser start up time.
Fix http://b/issue?id=2604295
diff --git a/res/layout/tab.xml b/res/layout/tab.xml
index abef51d..69baf56 100755
--- a/res/layout/tab.xml
+++ b/res/layout/tab.xml
@@ -32,8 +32,8 @@
android:layout_weight="1" />
<!-- Geolocation permissions prompt -->
- <com.android.browser.GeolocationPermissionsPrompt
- android:id="@+id/geolocation_permissions_prompt"
+ <ViewStub android:id="@+id/geolocation_permissions_prompt"
+ android:layout="@layout/geolocation_permissions_prompt"
android:layout_width="match_parent"
android:layout_height="wrap_content" />