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

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

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
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 <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 7
8 #include "app/system_monitor.h" 8 #include "app/system_monitor.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/tabs/tab_strip_model.h" 25 #include "chrome/browser/tabs/tab_strip_model.h"
26 #include "chrome/browser/tabs/tab_strip_model_delegate.h" 26 #include "chrome/browser/tabs/tab_strip_model_delegate.h"
27 #include "chrome/browser/tabs/tab_strip_model_order_controller.h" 27 #include "chrome/browser/tabs/tab_strip_model_order_controller.h"
28 #include "chrome/browser/ui/browser.h" 28 #include "chrome/browser/ui/browser.h"
29 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 29 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
30 #include "chrome/common/extensions/extension.h" 30 #include "chrome/common/extensions/extension.h"
31 #include "chrome/common/notification_details.h" 31 #include "chrome/common/notification_details.h"
32 #include "chrome/common/notification_observer_mock.h" 32 #include "chrome/common/notification_observer_mock.h"
33 #include "chrome/common/notification_registrar.h" 33 #include "chrome/common/notification_registrar.h"
34 #include "chrome/common/notification_source.h" 34 #include "chrome/common/notification_source.h"
35 #include "chrome/common/pref_names.h"
36 #include "chrome/common/property_bag.h" 35 #include "chrome/common/property_bag.h"
37 #include "chrome/common/url_constants.h" 36 #include "chrome/common/url_constants.h"
38 #include "chrome/test/testing_profile.h" 37 #include "chrome/test/testing_profile.h"
39 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
40 39
41 using testing::_; 40 using testing::_;
42 41
43 namespace { 42 namespace {
44 43
45 // Class used to delete a TabContents when another TabContents is destroyed. 44 // Class used to delete a TabContents when another TabContents is destroyed.
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 TabStripModel strip(&delegate, profile()); 1889 TabStripModel strip(&delegate, profile());
1891 TabContentsWrapper* contents1 = CreateTabContents(); 1890 TabContentsWrapper* contents1 = CreateTabContents();
1892 TabContentsWrapper* contents2 = CreateTabContents(); 1891 TabContentsWrapper* contents2 = CreateTabContents();
1893 strip.AppendTabContents(contents1, true); 1892 strip.AppendTabContents(contents1, true);
1894 strip.AppendTabContents(contents2, true); 1893 strip.AppendTabContents(contents2, true);
1895 // DeleteTabContentsOnDestroyedObserver deletes contents1 when contents2 sends 1894 // DeleteTabContentsOnDestroyedObserver deletes contents1 when contents2 sends
1896 // out notification that it is being destroyed. 1895 // out notification that it is being destroyed.
1897 DeleteTabContentsOnDestroyedObserver observer(contents2, contents1); 1896 DeleteTabContentsOnDestroyedObserver observer(contents2, contents1);
1898 strip.CloseAllTabs(); 1897 strip.CloseAllTabs();
1899 } 1898 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_restore_uitest.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698