| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/metrics/nacl_histogram.h" | 5 #include "base/metrics/nacl_histogram.h" |
| 6 #include "chrome/browser/tabs/default_tab_handler.h" | 6 #include "chrome/browser/tabs/default_tab_handler.h" |
| 7 #include "chrome/browser/browser.h" | |
| 8 #include "chrome/browser/tabs/tab_strip_model.h" | 7 #include "chrome/browser/tabs/tab_strip_model.h" |
| 8 #include "chrome/browser/ui/browser.h" |
| 9 | 9 |
| 10 //////////////////////////////////////////////////////////////////////////////// | 10 //////////////////////////////////////////////////////////////////////////////// |
| 11 // DefaultTabHandler, public: | 11 // DefaultTabHandler, public: |
| 12 | 12 |
| 13 DefaultTabHandler::DefaultTabHandler(TabHandlerDelegate* delegate) | 13 DefaultTabHandler::DefaultTabHandler(TabHandlerDelegate* delegate) |
| 14 : delegate_(delegate), | 14 : delegate_(delegate), |
| 15 ALLOW_THIS_IN_INITIALIZER_LIST( | 15 ALLOW_THIS_IN_INITIALIZER_LIST( |
| 16 model_(new TabStripModel(this, delegate->GetProfile()))) { | 16 model_(new TabStripModel(this, delegate->GetProfile()))) { |
| 17 UmaNaclHistogramEnumeration(FIRST_TAB_NACL_BASELINE); | 17 UmaNaclHistogramEnumeration(FIRST_TAB_NACL_BASELINE); |
| 18 model_->AddObserver(this); | 18 model_->AddObserver(this); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 193 } |
| 194 | 194 |
| 195 //////////////////////////////////////////////////////////////////////////////// | 195 //////////////////////////////////////////////////////////////////////////////// |
| 196 // TabHandler, public: | 196 // TabHandler, public: |
| 197 | 197 |
| 198 // static | 198 // static |
| 199 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { | 199 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { |
| 200 return new DefaultTabHandler(delegate); | 200 return new DefaultTabHandler(delegate); |
| 201 } | 201 } |
| 202 | 202 |
| OLD | NEW |