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

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

Issue 731423002: Remove OriginChip code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gyp file and bad merge Created 5 years, 10 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: chrome/browser/ui/omnibox/omnibox_edit_controller.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_controller.cc b/chrome/browser/ui/omnibox/omnibox_edit_controller.cc
index 480d8dd4459c4d7857ae239bd7252922ae882ea2..4e3bb30f5ac2b6ead43adfa68f137b5c8c30ca52 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_controller.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_controller.cc
@@ -27,21 +27,5 @@ OmniboxEditController::OmniboxEditController(CommandUpdater* command_updater)
ui::PAGE_TRANSITION_FROM_ADDRESS_BAR)) {
}
-void OmniboxEditController::HideOriginChip() {
- GetToolbarModel()->set_origin_chip_enabled(false);
- OnChanged();
-}
-
-void OmniboxEditController::ShowOriginChip() {
- // If URL replacement is still enabled, we can simply show the chip. If it
- // was disabled by an action to show the URL then the URL needs to be hidden.
- if (GetToolbarModel()->url_replacement_enabled()) {
- GetToolbarModel()->set_origin_chip_enabled(true);
- OnChanged();
- } else {
- HideURL();
- }
-}
-
OmniboxEditController::~OmniboxEditController() {
}
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_controller.h ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698