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

Side by Side Diff: chrome/browser/ui/browser_toolbar_model_delegate.cc

Issue 731423002: Remove OriginChip code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gyp file and bad merge Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_toolbar_model_delegate.h" 5 #include "chrome/browser/ui/browser_toolbar_model_delegate.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 9
10 BrowserToolbarModelDelegate::BrowserToolbarModelDelegate(Browser* browser) 10 BrowserToolbarModelDelegate::BrowserToolbarModelDelegate(Browser* browser)
11 : browser_(browser) { 11 : browser_(browser) {
12 } 12 }
13 13
14 BrowserToolbarModelDelegate::~BrowserToolbarModelDelegate() { 14 BrowserToolbarModelDelegate::~BrowserToolbarModelDelegate() {
15 } 15 }
16 16
17 content::WebContents* 17 content::WebContents*
18 BrowserToolbarModelDelegate::GetActiveWebContents() const { 18 BrowserToolbarModelDelegate::GetActiveWebContents() const {
19 return browser_->tab_strip_model()->GetActiveWebContents(); 19 return browser_->tab_strip_model()->GetActiveWebContents();
20 } 20 }
21
22 bool BrowserToolbarModelDelegate::InTabbedBrowser() const {
23 return browser_->is_type_tabbed();
24 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_toolbar_model_delegate.h ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698