Chromium Code Reviews| Index: chrome/browser/supervised_user/supervised_user_interstitial.cc |
| diff --git a/chrome/browser/supervised_user/supervised_user_interstitial.cc b/chrome/browser/supervised_user/supervised_user_interstitial.cc |
| index 17baddf27f49f5c33791d9819eb1f5b871b4df8a..9bbe704cb0b8311496cbd0f4b761e333f86429a6 100644 |
| --- a/chrome/browser/supervised_user/supervised_user_interstitial.cc |
| +++ b/chrome/browser/supervised_user/supervised_user_interstitial.cc |
| @@ -150,6 +150,9 @@ std::string SupervisedUserInterstitial::GetHTMLContents() { |
| GURL profile_url = GURL(profile->GetPrefs()->GetString( |
|
Bernhard Bauer
2014/08/21 14:48:46
Could we rename this to base_url, now that it migh
Marc Treib
2014/08/21 15:59:08
Done.
|
| prefs::kSupervisedUserCustodianProfileURL)); |
| + if (!profile_url.is_valid()) |
| + profile_url = GURL("https://dummy.url"); |
| + DCHECK(profile_url.is_valid()); |
| std::string profile_image_url = profile->GetPrefs()->GetString( |
| prefs::kSupervisedUserCustodianProfileImageURL); |
| strings.SetString("avatarURL1x", BuildAvatarImageUrl(profile_image_url, |
| @@ -161,6 +164,9 @@ std::string SupervisedUserInterstitial::GetHTMLContents() { |
| GURL profile_url2 = GURL(profile->GetPrefs()->GetString( |
| prefs::kSupervisedUserSecondCustodianProfileURL)); |
| + if (!profile_url2.is_valid()) |
| + profile_url2 = GURL("https://dummy.url"); |
| + DCHECK(profile_url2.is_valid()); |
| std::string profile_image_url2 = profile->GetPrefs()->GetString( |
| prefs::kSupervisedUserSecondCustodianProfileImageURL); |
| strings.SetString("secondAvatarURL1x", BuildAvatarImageUrl(profile_image_url2, |