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

Side by Side Diff: chrome/browser/tabs/tab_strip_model_unittest.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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/browser/tabs/tab_strip_model.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "app/system_monitor.h" 5 #include "app/system_monitor.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/stl_util-inl.h" 12 #include "base/stl_util-inl.h"
13 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "chrome/browser/defaults.h" 16 #include "chrome/browser/defaults.h"
17 #include "chrome/browser/dom_ui/new_tab_ui.h" 17 #include "chrome/browser/dom_ui/new_tab_ui.h"
18 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 20 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
21 #include "chrome/browser/tab_contents/navigation_controller.h" 21 #include "chrome/browser/tab_contents/navigation_controller.h"
22 #include "chrome/browser/tab_contents/navigation_entry.h" 22 #include "chrome/browser/tab_contents/navigation_entry.h"
23 #include "chrome/browser/tab_contents/tab_contents.h" 23 #include "chrome/browser/tab_contents/tab_contents.h"
24 #include "chrome/browser/tabs/tab_strip_model.h" 24 #include "chrome/browser/tabs/tab_strip_model.h"
25 #include "chrome/browser/tabs/tab_strip_model_delegate.h" 25 #include "chrome/browser/tabs/tab_strip_model_delegate.h"
26 #include "chrome/browser/tabs/tab_strip_model_order_controller.h" 26 #include "chrome/browser/tabs/tab_strip_model_order_controller.h"
27 #include "chrome/browser/ui/browser.h" 27 #include "chrome/browser/ui/browser.h"
28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
29 #include "chrome/common/extensions/extension.h" 29 #include "chrome/common/extensions/extension.h"
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 TabStripModel strip(&delegate, profile()); 1888 TabStripModel strip(&delegate, profile());
1889 TabContentsWrapper* contents1 = CreateTabContents(); 1889 TabContentsWrapper* contents1 = CreateTabContents();
1890 TabContentsWrapper* contents2 = CreateTabContents(); 1890 TabContentsWrapper* contents2 = CreateTabContents();
1891 strip.AppendTabContents(contents1, true); 1891 strip.AppendTabContents(contents1, true);
1892 strip.AppendTabContents(contents2, true); 1892 strip.AppendTabContents(contents2, true);
1893 // DeleteTabContentsOnDestroyedObserver deletes contents1 when contents2 sends 1893 // DeleteTabContentsOnDestroyedObserver deletes contents1 when contents2 sends
1894 // out notification that it is being destroyed. 1894 // out notification that it is being destroyed.
1895 DeleteTabContentsOnDestroyedObserver observer(contents2, contents1); 1895 DeleteTabContentsOnDestroyedObserver observer(contents2, contents1);
1896 strip.CloseAllTabs(); 1896 strip.CloseAllTabs();
1897 } 1897 }
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698