summaryrefslogtreecommitdiffstats
path: root/components/toolbar/toolbar_model.cc
diff options
context:
space:
mode:
authorblundell <blundell@chromium.org>2015-07-31 05:33:12 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-31 12:33:47 +0000
commit11d93bcf1ed99ff8a4573ed95253b38c650bf94f (patch)
tree10f519bb1390b361ffb1685b4350073a2e8c06f8 /components/toolbar/toolbar_model.cc
parentc968ca293465cdc27c9eac9707d7bd3889c308fd (diff)
downloadchromium_src-11d93bcf1ed99ff8a4573ed95253b38c650bf94f.zip
chromium_src-11d93bcf1ed99ff8a4573ed95253b38c650bf94f.tar.gz
chromium_src-11d93bcf1ed99ff8a4573ed95253b38c650bf94f.tar.bz2
Componentize ToolbarModel
The ToolbarModel interface is used in omnibox code targeted for sharing with iOS. This CL componentizes that interface to eliminate a blocker on the omnibox componentization. There are no problematic dependencies, so the componentization is straightforward. TBR=yfriedman BUG=511938 Review URL: https://codereview.chromium.org/1262133002 Cr-Commit-Position: refs/heads/master@{#341319}
Diffstat (limited to 'components/toolbar/toolbar_model.cc')
-rw-r--r--components/toolbar/toolbar_model.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/toolbar/toolbar_model.cc b/components/toolbar/toolbar_model.cc
new file mode 100644
index 0000000..b7f1f2e
--- /dev/null
+++ b/components/toolbar/toolbar_model.cc
@@ -0,0 +1,18 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/toolbar/toolbar_model.h"
+
+ToolbarModel::ToolbarModel()
+ : input_in_progress_(false),
+ url_replacement_enabled_(true) {
+}
+
+ToolbarModel::~ToolbarModel() {
+}
+
+bool ToolbarModel::WouldReplaceURL() const {
+ return WouldPerformSearchTermReplacement(false);
+}
+