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

Unified Diff: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc

Issue 8633021: Don't reload the keyboard on clean exit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
diff --git a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
index b0b8ed1caa2cd8581b95a9dab4f1c957665fd36e..c1e433c45418eb007ceb0bc5321a16350bcc1bff 100644
--- a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
+++ b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
@@ -348,9 +348,11 @@ bool KeyboardWidget::OnMessageReceived(const IPC::Message& message) {
}
void KeyboardWidget::RenderViewGone(base::TerminationStatus status) {
- // Reload the keyboard if it crashes.
- dom_view_->LoadURL(keyboard_url_);
- dom_view_->SchedulePaint();
+ if (status != base::TERMINATION_STATUS_NORMAL_TERMINATION) {
+ // Reload the keyboard if it crashes.
+ dom_view_->LoadURL(keyboard_url_);
+ dom_view_->SchedulePaint();
+ }
}
void KeyboardWidget::OnRequest(const ExtensionHostMsg_Request_Params& request) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698