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

Side by Side Diff: chrome/browser/ui/browser_list.cc

Issue 7377010: This change will split the result codes between content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actually rename the files Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 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 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/ui/browser_list.h" 5 #include "chrome/browser/ui/browser_list.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 chrome::NOTIFICATION_SESSION_END, 531 chrome::NOTIFICATION_SESSION_END,
532 NotificationService::AllSources(), 532 NotificationService::AllSources(),
533 NotificationService::NoDetails()); 533 NotificationService::NoDetails());
534 534
535 // And shutdown. 535 // And shutdown.
536 browser_shutdown::Shutdown(); 536 browser_shutdown::Shutdown();
537 537
538 #if defined(OS_WIN) 538 #if defined(OS_WIN)
539 // At this point the message loop is still running yet we've shut everything 539 // At this point the message loop is still running yet we've shut everything
540 // down. If any messages are processed we'll likely crash. Exit now. 540 // down. If any messages are processed we'll likely crash. Exit now.
541 ExitProcess(ResultCodes::NORMAL_EXIT); 541 ExitProcess(content::RESULT_CODE_NORMAL_EXIT);
542 #elif defined(OS_POSIX) && !defined(OS_MACOSX) 542 #elif defined(OS_POSIX) && !defined(OS_MACOSX)
543 _exit(ResultCodes::NORMAL_EXIT); 543 _exit(content::RESULT_CODE_NORMAL_EXIT);
544 #else 544 #else
545 NOTIMPLEMENTED(); 545 NOTIMPLEMENTED();
546 #endif 546 #endif
547 } 547 }
548 548
549 // static 549 // static
550 bool BrowserList::HasBrowserWithProfile(Profile* profile) { 550 bool BrowserList::HasBrowserWithProfile(Profile* profile) {
551 return FindBrowserMatching(BrowserList::begin(), 551 return FindBrowserMatching(BrowserList::begin(),
552 BrowserList::end(), 552 BrowserList::end(),
553 profile, 553 profile,
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 // If no more TabContents from Browsers, check the BackgroundPrintingManager. 743 // If no more TabContents from Browsers, check the BackgroundPrintingManager.
744 while (bg_printing_iterator_ != GetBackgroundPrintingManager()->end()) { 744 while (bg_printing_iterator_ != GetBackgroundPrintingManager()->end()) {
745 cur_ = *bg_printing_iterator_; 745 cur_ = *bg_printing_iterator_;
746 CHECK(cur_); 746 CHECK(cur_);
747 ++bg_printing_iterator_; 747 ++bg_printing_iterator_;
748 return; 748 return;
749 } 749 }
750 // Reached the end - no more TabContents. 750 // Reached the end - no more TabContents.
751 cur_ = NULL; 751 cur_ = NULL;
752 } 752 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698