OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |