Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: blimp/engine/session/blimp_engine_session.cc

Issue 1869783005: [Blimp Client] Fixes up URL before sending it to Engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: blimp/engine/session/blimp_engine_session.cc
diff --git a/blimp/engine/session/blimp_engine_session.cc b/blimp/engine/session/blimp_engine_session.cc
index 3e9acd6a434c2232c3b247d15a75765cc253571f..8f6479abdc726fc2481a7058e53352605cf9dfda 100644
--- a/blimp/engine/session/blimp_engine_session.cc
+++ b/blimp/engine/session/blimp_engine_session.cc
@@ -320,7 +320,8 @@ void BlimpEngineSession::HandleResize(float device_pixel_ratio,
void BlimpEngineSession::LoadUrl(const int target_tab_id, const GURL& url) {
DVLOG(1) << "Load URL " << url << " in tab " << target_tab_id;
- if (url.is_empty()) {
+ if (!url.is_valid()) {
+ VLOG(1) << "Dropping invalid URL " << url;
return;
}
« blimp/client/feature/navigation_feature.cc ('K') | « blimp/client/feature/navigation_feature.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698