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

Side by Side Diff: chrome/browser/browser_init.cc

Issue 2866034: Refactor shutdown code to allow win/linux to run after last browser closes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Uploaded patch that resolves merge issue Created 10 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/browser_list.h » ('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/browser_init.h" 5 #include "chrome/browser/browser_init.h"
6 6
7 #include <algorithm> // For max(). 7 #include <algorithm> // For max().
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 453
454 chromeos::CrosLibrary::Get()->GetNetworkLibrary()->AddObserver( 454 chromeos::CrosLibrary::Get()->GetNetworkLibrary()->AddObserver(
455 chromeos::NetworkStateNotifier::Get()); 455 chromeos::NetworkStateNotifier::Get());
456 456
457 // Creates the SystemKeyEventListener to listen for keypress messages 457 // Creates the SystemKeyEventListener to listen for keypress messages
458 // regardless of what window has focus. 458 // regardless of what window has focus.
459 chromeos::SystemKeyEventListener::instance(); 459 chromeos::SystemKeyEventListener::instance();
460 } 460 }
461 #endif 461 #endif
462 462
463 if (command_line.HasSwitch(switches::kRestoreBackgroundContents)) { 463 if (command_line.HasSwitch(switches::kRestoreBackgroundContents) ||
464 command_line.HasSwitch(switches::kKeepAliveForTest)) {
464 // Create status icons 465 // Create status icons
465 StatusTrayManager* tray = g_browser_process->status_tray_manager(); 466 StatusTrayManager* tray = g_browser_process->status_tray_manager();
466 if (tray) 467 if (tray)
467 tray->Init(profile); 468 tray->Init(profile);
468 } 469 }
469 return true; 470 return true;
470 } 471 }
471 472
472 #if defined(OS_CHROMEOS) 473 #if defined(OS_CHROMEOS)
473 bool BrowserInit::ApplyServicesCustomization( 474 bool BrowserInit::ApplyServicesCustomization(
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 scoped_refptr<AutomationProviderClass> automation = 1072 scoped_refptr<AutomationProviderClass> automation =
1072 new AutomationProviderClass(profile); 1073 new AutomationProviderClass(profile);
1073 automation->ConnectToChannel(channel_id); 1074 automation->ConnectToChannel(channel_id);
1074 automation->SetExpectedTabCount(expected_tabs); 1075 automation->SetExpectedTabCount(expected_tabs);
1075 1076
1076 AutomationProviderList* list = 1077 AutomationProviderList* list =
1077 g_browser_process->InitAutomationProviderList(); 1078 g_browser_process->InitAutomationProviderList();
1078 DCHECK(list); 1079 DCHECK(list);
1079 list->AddProvider(automation); 1080 list->AddProvider(automation);
1080 } 1081 }
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/browser_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698