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

Side by Side Diff: chrome/browser/chromeos/tab_closeable_state_watcher.cc

Issue 3402010: Google codestyle prescribes sorting #include filenames within a section.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 3 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/chromeos/preferences.cc ('k') | chrome/browser/chromeos/update_browsertest.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 "chrome/browser/chromeos/tab_closeable_state_watcher.h" 5 #include "chrome/browser/chromeos/tab_closeable_state_watcher.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/browser/browser_shutdown.h" 8 #include "chrome/browser/browser_shutdown.h"
10 #include "chrome/browser/defaults.h" 9 #include "chrome/browser/defaults.h"
11 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/browser/tab_contents/tab_contents_view.h" 12 #include "chrome/browser/tab_contents/tab_contents_view.h"
13 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/notification_service.h" 14 #include "chrome/common/notification_service.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 //////////////////////////////////////////////////////////////////////////////// 19 ////////////////////////////////////////////////////////////////////////////////
20 // TabCloseableStateWatcher::TabStripWatcher, public: 20 // TabCloseableStateWatcher::TabStripWatcher, public:
21 21
22 TabCloseableStateWatcher::TabStripWatcher::TabStripWatcher( 22 TabCloseableStateWatcher::TabStripWatcher::TabStripWatcher(
23 TabCloseableStateWatcher* main_watcher, const Browser* browser) 23 TabCloseableStateWatcher* main_watcher, const Browser* browser)
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 if (!can_close_tab_) 248 if (!can_close_tab_)
249 return false; 249 return false;
250 250
251 // Otherwise, close existing tabs, and deny closing of browser. 251 // Otherwise, close existing tabs, and deny closing of browser.
252 // TabClosingAt will open NTP when the last tab is being closed. 252 // TabClosingAt will open NTP when the last tab is being closed.
253 *action_type = OPEN_NTP; 253 *action_type = OPEN_NTP;
254 return false; 254 return false;
255 } 255 }
256 256
257 } // namespace chromeos 257 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/chromeos/update_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698