blob: 4742779b3a55816799c5e180bbe17f83cd17055b [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/browser_location_bar_model_delegate.h"
#include "base/check_deref.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
BrowserLocationBarModelDelegate::BrowserLocationBarModelDelegate(
TabStripModel* tab_strip_model)
: tab_strip_model_(CHECK_DEREF(tab_strip_model)) {}
BrowserLocationBarModelDelegate::~BrowserLocationBarModelDelegate() = default;
content::WebContents* BrowserLocationBarModelDelegate::GetActiveWebContents()
const {
return tab_strip_model_->GetActiveWebContents();
}