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

Unified Diff: components/toolbar/toolbar_model.h

Issue 2242213008: Remove url_replacement logic from Omnibox/ToolbarModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_show_url
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « components/toolbar/BUILD.gn ('k') | components/toolbar/toolbar_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/toolbar_model.h
diff --git a/components/toolbar/toolbar_model.h b/components/toolbar/toolbar_model.h
index e3641bb84a179f70c01c5db9544062b91dd6afba..19c60d1cb31082b8c7ecdf82086b3fef53e427a9 100644
--- a/components/toolbar/toolbar_model.h
+++ b/components/toolbar/toolbar_model.h
@@ -23,7 +23,7 @@ enum class VectorIconId;
// from the navigation controller returned by GetNavigationController().
class ToolbarModel {
public:
- virtual ~ToolbarModel();
+ virtual ~ToolbarModel() = default;
// Returns a formatted URL for display in the toolbar. The formatting
// includes:
@@ -69,21 +69,11 @@ class ToolbarModel {
}
bool input_in_progress() const { return input_in_progress_; }
- // Whether URL replacement should be enabled.
- // TODO(treib,pkasting): Remove this. crbug.com/627747
- void set_url_replacement_enabled(bool enabled) {
- url_replacement_enabled_ = enabled;
- }
- bool url_replacement_enabled() const {
- return url_replacement_enabled_;
- }
-
protected:
- ToolbarModel();
+ ToolbarModel() : input_in_progress_(false) {}
private:
bool input_in_progress_;
- bool url_replacement_enabled_;
DISALLOW_COPY_AND_ASSIGN(ToolbarModel);
};
« no previous file with comments | « components/toolbar/BUILD.gn ('k') | components/toolbar/toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698