OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/profile_startup.h" | 5 #include "chrome/browser/chromeos/profile_startup.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/cros/cros_library.h" | 7 #include "chrome/browser/chromeos/cros/cros_library.h" |
8 #include "chrome/browser/chromeos/cros/network_library.h" | 8 #include "chrome/browser/chromeos/cros/network_library.h" |
9 #include "chrome/browser/chromeos/customization_document.h" | 9 #include "chrome/browser/chromeos/customization_document.h" |
10 #include "chrome/browser/chromeos/enterprise_extension_observer.h" | 10 #include "chrome/browser/chromeos/enterprise_extension_observer.h" |
11 #include "chrome/browser/chromeos/gview_request_interceptor.h" | |
12 #include "chrome/browser/chromeos/network_message_observer.h" | 11 #include "chrome/browser/chromeos/network_message_observer.h" |
13 #include "chrome/browser/chromeos/sms_observer.h" | 12 #include "chrome/browser/chromeos/sms_observer.h" |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chromeos/dbus/dbus_thread_manager.h" | 14 #include "chromeos/dbus/dbus_thread_manager.h" |
16 | 15 |
17 namespace chromeos { | 16 namespace chromeos { |
18 | 17 |
19 // TODO(beng): It is very fishy that any of these services need to be tied to | 18 // TODO(beng): It is very fishy that any of these services need to be tied to |
20 // a browser profile. This dependency should be severed and this | 19 // a browser profile. This dependency should be severed and this |
21 // init moved earlier in startup. | 20 // init moved earlier in startup. |
(...skipping 18 matching lines...) Expand all Loading... |
40 static chromeos::SmsObserver* sms_observer = | 39 static chromeos::SmsObserver* sms_observer = |
41 new chromeos::SmsObserver(profile); | 40 new chromeos::SmsObserver(profile); |
42 chromeos::CrosLibrary::Get()->GetNetworkLibrary()-> | 41 chromeos::CrosLibrary::Get()->GetNetworkLibrary()-> |
43 AddNetworkManagerObserver(sms_observer); | 42 AddNetworkManagerObserver(sms_observer); |
44 | 43 |
45 profile->SetupChromeOSEnterpriseExtensionObserver(); | 44 profile->SetupChromeOSEnterpriseExtensionObserver(); |
46 } | 45 } |
47 } | 46 } |
48 | 47 |
49 } // namespace chromeos | 48 } // namespace chromeos |
OLD | NEW |