• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/ui/toolbar/toolbar_model.h"
6 
ToolbarModel()7 ToolbarModel::ToolbarModel()
8     : input_in_progress_(false),
9       url_replacement_enabled_(true) {
10 }
11 
~ToolbarModel()12 ToolbarModel::~ToolbarModel() {
13 }
14 
WouldReplaceURL() const15 bool ToolbarModel::WouldReplaceURL() const {
16   return WouldOmitURLDueToOriginChip() ||
17       WouldPerformSearchTermReplacement(false);
18 }
19