| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 chromeos::CrosLibrary::Get()->GetPowerLibrary()->AddObserver( | 434 chromeos::CrosLibrary::Get()->GetPowerLibrary()->AddObserver( |
| 435 low_battery_observer); | 435 low_battery_observer); |
| 436 | 436 |
| 437 static chromeos::UpdateObserver* update_observer = | 437 static chromeos::UpdateObserver* update_observer = |
| 438 new chromeos::UpdateObserver(profile); | 438 new chromeos::UpdateObserver(profile); |
| 439 chromeos::CrosLibrary::Get()->GetUpdateLibrary()->AddObserver( | 439 chromeos::CrosLibrary::Get()->GetUpdateLibrary()->AddObserver( |
| 440 update_observer); | 440 update_observer); |
| 441 | 441 |
| 442 static chromeos::NetworkMessageObserver* network_message_observer = | 442 static chromeos::NetworkMessageObserver* network_message_observer = |
| 443 new chromeos::NetworkMessageObserver(profile); | 443 new chromeos::NetworkMessageObserver(profile); |
| 444 chromeos::CrosLibrary::Get()->GetNetworkLibrary() | 444 chromeos::CrosLibrary::Get()->GetNetworkLibrary()->AddObserver( |
| 445 ->AddNetworkManagerObserver(network_message_observer); | 445 network_message_observer); |
| 446 chromeos::CrosLibrary::Get()->GetNetworkLibrary() | |
| 447 ->AddCellularDataPlanObserver(network_message_observer); | |
| 448 | 446 |
| 449 chromeos::CrosLibrary::Get()->GetNetworkLibrary() | 447 chromeos::CrosLibrary::Get()->GetNetworkLibrary()->AddObserver( |
| 450 ->AddNetworkManagerObserver(chromeos::NetworkStateNotifier::Get()); | 448 chromeos::NetworkStateNotifier::Get()); |
| 451 } | 449 } |
| 452 #endif | 450 #endif |
| 453 return true; | 451 return true; |
| 454 } | 452 } |
| 455 | 453 |
| 456 // Tab ------------------------------------------------------------------------ | 454 // Tab ------------------------------------------------------------------------ |
| 457 | 455 |
| 458 BrowserInit::LaunchWithProfile::Tab::Tab() : is_app(false), is_pinned(true) {} | 456 BrowserInit::LaunchWithProfile::Tab::Tab() : is_app(false), is_pinned(true) {} |
| 459 | 457 |
| 460 BrowserInit::LaunchWithProfile::Tab::~Tab() {} | 458 BrowserInit::LaunchWithProfile::Tab::~Tab() {} |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 scoped_refptr<AutomationProviderClass> automation = | 1024 scoped_refptr<AutomationProviderClass> automation = |
| 1027 new AutomationProviderClass(profile); | 1025 new AutomationProviderClass(profile); |
| 1028 automation->ConnectToChannel(channel_id); | 1026 automation->ConnectToChannel(channel_id); |
| 1029 automation->SetExpectedTabCount(expected_tabs); | 1027 automation->SetExpectedTabCount(expected_tabs); |
| 1030 | 1028 |
| 1031 AutomationProviderList* list = | 1029 AutomationProviderList* list = |
| 1032 g_browser_process->InitAutomationProviderList(); | 1030 g_browser_process->InitAutomationProviderList(); |
| 1033 DCHECK(list); | 1031 DCHECK(list); |
| 1034 list->AddProvider(automation); | 1032 list->AddProvider(automation); |
| 1035 } | 1033 } |
| OLD | NEW |