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

Unified Diff: chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.cc

Issue 1485333006: Abstract callout to OmniboxEditController on updating input in progress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + response to review Created 5 years 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: chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.cc
diff --git a/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.cc b/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.cc
index 39ddb25d665f8605203084ae93f76f54474950f4..ff00223ca3f9cde3a8438ed57daaed3fe1851f29 100644
--- a/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.cc
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.cc
@@ -6,6 +6,7 @@
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/command_updater.h"
+#include "components/toolbar/toolbar_model.h"
ChromeOmniboxEditController::ChromeOmniboxEditController(
CommandUpdater* command_updater)
@@ -22,3 +23,8 @@ void ChromeOmniboxEditController::OnAutocompleteAccept(
if (command_updater_)
command_updater_->ExecuteCommand(IDC_OPEN_CURRENT_URL);
}
+
+void ChromeOmniboxEditController::OnInputInProgress(bool in_progress) {
+ GetToolbarModel()->set_input_in_progress(in_progress);
+ UpdateWithoutTabRestore();
+}
« no previous file with comments | « chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h ('k') | components/omnibox/browser/omnibox_edit_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698