Descriptionwebapps: propogate name and shortName from manifest to Java
In the past we simply retrieved the name and short name and picked the latter
to be the title if it existed or otherwise we used the former. The user was
then able to edit the title and save the web app on their homescreen. This title
was then used on the launcher as well as in recents.
However, with the new splash screen which might be up soon, we need the long
name from the website to display on the splash screen. It also looks better
if recents utilizes the short name which is specified by the website rather than
a user specified title which is used on the launcher.
Because of all this, this CL propogates the info through various C++ and Java
classes to allow the above usage. Now the user title is used just for the home
screen icon. The name is used on the splash screen and the short name is used
in recents.
A note on backward compatibility: current webapps will simply use the
user specified title which is currently saved in the intent - this CL only
affects new webapps which the user adds after it lands.
BUG=508628
Committed: https://crrev.com/f3ee51858aec43abdb498cb7d7ce778a121fd999
Cr-Commit-Position: refs/heads/master@{#339697}
Patch Set 1 #Patch Set 2 : Fix compile on Android #Patch Set 3 : Fix test compile on Android #
Total comments: 6
Patch Set 4 : Add unit tests #
Total comments: 1
Patch Set 5 : Fix Mounir's comments #Patch Set 6 : Change style of commit message #
Total comments: 4
Patch Set 7 : Fix comments of code #Patch Set 8 : Rebase on master #Patch Set 9 : Rebase #Patch Set 10 : Fix try issues #Patch Set 11 : Fix cl issues #
Total comments: 14
Patch Set 12 : Fix comments on previous patch #
Total comments: 3
Patch Set 13 : Rebase #Patch Set 14 : Fix nullness of name/shortname #Patch Set 15 : Add back explict destructor #Messages
Total messages: 48 (11 generated)
|