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

Unified Diff: chrome/browser/ui/browser_toolbar_model_delegate.cc

Issue 9479008: Re-factor location bar/toolbar code to get rid of the browser dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: call right overloaded method Created 8 years, 9 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/browser_toolbar_model_delegate.cc
diff --git a/chrome/browser/ui/browser_toolbar_model_delegate.cc b/chrome/browser/ui/browser_toolbar_model_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e93f33b4a32e7d0ba0b5d7d2497f4ee8b106c95a
--- /dev/null
+++ b/chrome/browser/ui/browser_toolbar_model_delegate.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2012 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 "chrome/browser/ui/browser_toolbar_model_delegate.h"
+
+#include "chrome/browser/ui/browser.h"
+
+BrowserToolbarModelDelegate::BrowserToolbarModelDelegate(Browser* browser)
+ : browser_(browser) {
+}
+
+BrowserToolbarModelDelegate::~BrowserToolbarModelDelegate() {
+}
+
+content::WebContents*
+BrowserToolbarModelDelegate::GetActiveWebContents() const {
+ return browser_->GetSelectedWebContents();
+}
« no previous file with comments | « chrome/browser/ui/browser_toolbar_model_delegate.h ('k') | chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698