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

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

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.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
« no previous file with comments | « chrome/browser/tab_restore_uitest.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('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 "chrome/browser/tabs/tab_strip_model.h" 5 #include "chrome/browser/tabs/tab_strip_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map>
8 9
9 #include "base/command_line.h" 10 #include "base/command_line.h"
10 #include "base/stl_util-inl.h" 11 #include "base/stl_util-inl.h"
11 #include "base/string_util.h" 12 #include "base/string_util.h"
12 #include "build/build_config.h" 13 #include "build/build_config.h"
13 #include "chrome/app/chrome_command_ids.h" 14 #include "chrome/app/chrome_command_ids.h"
14 #include "chrome/browser/bookmarks/bookmark_model.h" 15 #include "chrome/browser/bookmarks/bookmark_model.h"
15 #include "chrome/browser/browser_shutdown.h" 16 #include "chrome/browser/browser_shutdown.h"
16 #include "chrome/browser/defaults.h" 17 #include "chrome/browser/defaults.h"
17 #include "chrome/browser/extensions/extension_service.h" 18 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/metrics/user_metrics.h" 19 #include "chrome/browser/metrics/user_metrics.h"
19 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/renderer_host/render_process_host.h" 21 #include "chrome/browser/renderer_host/render_process_host.h"
21 #include "chrome/browser/sessions/tab_restore_service.h" 22 #include "chrome/browser/sessions/tab_restore_service.h"
22 #include "chrome/browser/tabs/tab_strip_model_delegate.h" 23 #include "chrome/browser/tabs/tab_strip_model_delegate.h"
23 #include "chrome/browser/tabs/tab_strip_model_order_controller.h" 24 #include "chrome/browser/tabs/tab_strip_model_order_controller.h"
24 #include "chrome/browser/tab_contents/navigation_controller.h" 25 #include "chrome/browser/tab_contents/navigation_controller.h"
25 #include "chrome/browser/tab_contents/tab_contents.h" 26 #include "chrome/browser/tab_contents/tab_contents.h"
26 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 27 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
27 #include "chrome/browser/tab_contents/tab_contents_view.h" 28 #include "chrome/browser/tab_contents/tab_contents_view.h"
28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 29 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
29 #include "chrome/common/chrome_switches.h"
30 #include "chrome/common/extensions/extension.h" 30 #include "chrome/common/extensions/extension.h"
31 #include "chrome/common/notification_service.h" 31 #include "chrome/common/notification_service.h"
32 #include "chrome/common/url_constants.h" 32 #include "chrome/common/url_constants.h"
33 33
34 namespace { 34 namespace {
35 35
36 // Returns true if the specified transition is one of the types that cause the 36 // Returns true if the specified transition is one of the types that cause the
37 // opener relationships for the tab in which the transition occured to be 37 // opener relationships for the tab in which the transition occured to be
38 // forgotten. This is generally any navigation that isn't a link click (i.e. 38 // forgotten. This is generally any navigation that isn't a link click (i.e.
39 // any navigation that can be considered to be the start of a new task distinct 39 // any navigation that can be considered to be the start of a new task distinct
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, 1004 FOR_EACH_OBSERVER(TabStripModelObserver, observers_,
1005 TabMoved(moved_data->contents, index, to_position)); 1005 TabMoved(moved_data->contents, index, to_position));
1006 } 1006 }
1007 1007
1008 // static 1008 // static
1009 bool TabStripModel::OpenerMatches(const TabContentsData* data, 1009 bool TabStripModel::OpenerMatches(const TabContentsData* data,
1010 const NavigationController* opener, 1010 const NavigationController* opener,
1011 bool use_group) { 1011 bool use_group) {
1012 return data->opener == opener || (use_group && data->group == opener); 1012 return data->opener == opener || (use_group && data->group == opener);
1013 } 1013 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_restore_uitest.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698