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

Side by Side Diff: chrome/test/test_tab_strip_model_observer.cc

Issue 7537033: Move more files from chrome/test to chrome/test/base, part #5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/test_tab_strip_model_observer.h ('k') | chrome/test/testing_pref_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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/test/test_tab_strip_model_observer.h"
6
7 #include "chrome/browser/tabs/tab_strip_model.h"
8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
9
10 TestTabStripModelObserver::TestTabStripModelObserver(
11 TabStripModel* tab_strip_model,
12 TestTabStripModelObserver::JsInjectionReadyObserver*
13 js_injection_ready_observer)
14 : TestNavigationObserver(js_injection_ready_observer, 1),
15 tab_strip_model_(tab_strip_model) {
16 tab_strip_model_->AddObserver(this);
17 }
18
19 TestTabStripModelObserver::~TestTabStripModelObserver() {
20 tab_strip_model_->RemoveObserver(this);
21 }
22
23 void TestTabStripModelObserver::TabInsertedAt(
24 TabContentsWrapper* contents, int index, bool foreground) {
25 RegisterAsObserver(&contents->controller());
26 }
OLDNEW
« no previous file with comments | « chrome/test/test_tab_strip_model_observer.h ('k') | chrome/test/testing_pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698