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

Unified Diff: blimp/engine/browser/blimp_browser_main_parts.cc

Issue 1422363008: Add a basic UI to the Android Blimp client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made sure to clear old control data Created 5 years, 1 month 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
« no previous file with comments | « blimp/common/proto/navigation.proto ('k') | blimp/engine/browser/blimp_engine_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/browser/blimp_browser_main_parts.cc
diff --git a/blimp/engine/browser/blimp_browser_main_parts.cc b/blimp/engine/browser/blimp_browser_main_parts.cc
index 232d8120d3b66e902ec1731f47d7f97d2091d338..8a8e533687926b9e6db7aa3270bbc5db7bcdb45a 100644
--- a/blimp/engine/browser/blimp_browser_main_parts.cc
+++ b/blimp/engine/browser/blimp_browser_main_parts.cc
@@ -46,8 +46,10 @@ void BlimpBrowserMainParts::PreMainMessageLoopRun() {
message.set_type(BlimpMessage::CONTROL);
message.mutable_control()->set_type(ControlMessage::CREATE_TAB);
engine_session_->OnBlimpMessage(message);
- message.mutable_control()->set_type(ControlMessage::LOAD_URL);
- message.mutable_control()->mutable_load_url()->set_url(
+ message.clear_control();
+ message.set_type(BlimpMessage::NAVIGATION);
+ message.mutable_navigation()->set_type(NavigationMessage::LOAD_URL);
+ message.mutable_navigation()->mutable_load_url()->set_url(
"https://www.google.com/");
engine_session_->OnBlimpMessage(message);
}
« no previous file with comments | « blimp/common/proto/navigation.proto ('k') | blimp/engine/browser/blimp_engine_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698