Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remote resource requests from newtab webui #229

Merged
merged 1 commit into from
Jul 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion browser/ui/webui/brave_webui_source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,28 @@ void CustomizeWebUIHTMLSource(const std::string &name, content::WebUIDataSource*
{ "314e7529efec41c8867019815f4d8dad.svg", IDR_BRAVE_NEW_TAB_IMG4 },
{ "6c337c63662ee0ba4e57f6f8156d69ce.svg", IDR_BRAVE_NEW_TAB_IMG2 },
{ "50cc52a4f1743ea74a21da996fe44272.jpg", IDR_BRAVE_NEW_TAB_IMG14 },
{ "b6dd4b1292cfd4470e58486c56ad0832.svg", IDR_BRAVE_NEW_TAB_PRIVATE_ICON }
{ "b6dd4b1292cfd4470e58486c56ad0832.svg", IDR_BRAVE_NEW_TAB_PRIVATE_ICON },
// New tab Backgrounds
{ "dksfoto1.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND1 },
{ "dksfoto2.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND2 },
{ "dksfoto3.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND3 },
{ "dksfoto4.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND4 },
{ "dksfoto5.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND5 },
{ "dksfoto6.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND6 },
{ "dksfoto7.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND7 },
{ "dksfoto8.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND8 },
{ "dksfoto9.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND9 },
{ "dksfoto10.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND10 },
{ "dksfoto11.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND11 },
{ "Phoyoserge_Corsica.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND12 },
{ "Phoyoserge_Corsica2.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND13 },
{ "Phoyoserge_DowntownGriffith.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND14 },
{ "Phoyoserge_ElmatadorBeach.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND15 },
{ "Phoyoserge_ParisConciergeri.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND16 },
{ "Phoyoserge_Theroofparis.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND17 },
{ "Phoyoserge_TheSeantParis.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND18 },
{ "Phoyoserge_VeniseSunset.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND19 },
{ "Phoyoserge_Yosemite.jpg", IDR_BRAVE_NEW_TAB_BACKGROUND20 }
}
}, {
std::string("welcome"), {
Expand Down
40 changes: 20 additions & 20 deletions components/brave_new_tab_ui/backgrounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,102 +5,102 @@
module.exports = [
{
'name': 'Tuolome Meadows',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto1.jpg',
'source': 'dksfoto1.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'South Tufa, Mono Lake',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto2.jpg',
'source': 'dksfoto2.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Little Lakes Valley',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto3.jpg',
'source': 'dksfoto3.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Bay Bridge',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto4.jpg',
'source': 'dksfoto4.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Yosemite',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto5.jpg',
'source': 'dksfoto5.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Beach Ice',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto6.jpg',
'source': 'dksfoto6.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Color and White Trunks',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto7.jpg',
'source': 'dksfoto7.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Golden Gate Bridge',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto8.jpg',
'source': 'dksfoto8.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Long Lake',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto9.jpg',
'source': 'dksfoto9.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'San Francisco Skyline',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto10.jpg',
'source': 'dksfoto10.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Across Mono Basin',
'source': 'https://s3.amazonaws.com/brave-backgrounds/dksfoto11.jpg',
'source': 'dksfoto11.jpg',
'author': 'Darrell Sano',
'link': 'https://dksfoto.smugmug.com'
}, {
'name': 'Corsica',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_Corsica.jpg',
'source': 'Phoyoserge_Corsica.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Corsica',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_Corsica2.jpg',
'source': 'Phoyoserge_Corsica2.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Griffith Park Observatory (Downtown Los Angeles)',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_DowntownGriffith.jpg',
'source': 'Phoyoserge_DowntownGriffith.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Elmatador Beach',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_ElmatadorBeach.jpg',
'source': 'Phoyoserge_ElmatadorBeach.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Paris:Conciergeri',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_ParisConciergeri.jpg',
'source': 'Phoyoserge_ParisConciergeri.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Paris:The Roof',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_Theroofparis.jpg',
'source': 'Phoyoserge_Theroofparis.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Paris:The Seant',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_TheSeantParis.jpg',
'source': 'Phoyoserge_TheSeantParis.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Venise Sunset',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_VeniseSunset.jpg',
'source': 'Phoyoserge_VeniseSunset.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}, {
'name': 'Yosemite',
'source': 'https://s3.amazonaws.com/brave-backgrounds/Phoyoserge_Yosemite.jpg',
'source': 'Phoyoserge_Yosemite.jpg',
'author': 'Serge Ramelli',
'link': 'https://www.photoserge.com/'
}
Expand Down
Binary file added components/img/newtab/Phoyoserge_Corsica.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/Phoyoserge_Corsica2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/Phoyoserge_Yosemite.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/img/newtab/dksfoto9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions components/resources/brave_components_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,26 @@
<include name="IDR_BRAVE_NEW_TAB_IMG2" file="../img/newtab/settings_prefs_btn.svg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_IMG14" file="../img/newtab/newtab_stock_image.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_PRIVATE_ICON" file="../img/newtab/private_tab_pagearea_icon.svg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND1" file="../img/newtab/dksfoto1.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND2" file="../img/newtab/dksfoto2.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND3" file="../img/newtab/dksfoto3.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND4" file="../img/newtab/dksfoto4.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND5" file="../img/newtab/dksfoto5.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND6" file="../img/newtab/dksfoto6.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND7" file="../img/newtab/dksfoto7.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND8" file="../img/newtab/dksfoto8.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND9" file="../img/newtab/dksfoto9.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND10" file="../img/newtab/dksfoto10.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND11" file="../img/newtab/dksfoto11.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND12" file="../img/newtab/Phoyoserge_Corsica.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND13" file="../img/newtab/Phoyoserge_Corsica2.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND14" file="../img/newtab/Phoyoserge_DowntownGriffith.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND15" file="../img/newtab/Phoyoserge_ElmatadorBeach.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND16" file="../img/newtab/Phoyoserge_ParisConciergeri.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND17" file="../img/newtab/Phoyoserge_Theroofparis.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND18" file="../img/newtab/Phoyoserge_TheSeantParis.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND19" file="../img/newtab/Phoyoserge_VeniseSunset.jpg" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND20" file="../img/newtab/Phoyoserge_Yosemite.jpg" type="BINDATA" />

</includes>
<messages fallback_to_english="true">
Expand Down

This file was deleted.