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/extensions/api/identity/identity_api.h" | 5 #include "chrome/browser/extensions/api/identity/identity_api.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 scoped_ptr<base::ListValue> args = | 753 scoped_ptr<base::ListValue> args = |
754 api::identity::OnSignInChanged::Create(account_info, is_signed_in); | 754 api::identity::OnSignInChanged::Create(account_info, is_signed_in); |
755 scoped_ptr<Event> event(new Event( | 755 scoped_ptr<Event> event(new Event( |
756 api::identity::OnSignInChanged::kEventName, args.Pass(), profile_)); | 756 api::identity::OnSignInChanged::kEventName, args.Pass(), profile_)); |
757 | 757 |
758 ExtensionSystem::Get(profile_)->event_router()->BroadcastEvent(event.Pass()); | 758 ExtensionSystem::Get(profile_)->event_router()->BroadcastEvent(event.Pass()); |
759 } | 759 } |
760 | 760 |
761 template <> | 761 template <> |
762 void ProfileKeyedAPIFactory<IdentityAPI>::DeclareFactoryDependencies() { | 762 void ProfileKeyedAPIFactory<IdentityAPI>::DeclareFactoryDependencies() { |
763 DependsOn(ExtensionSystemFactory::GetInstance()); | 763 DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory()); |
764 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); | 764 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); |
765 } | 765 } |
766 | 766 |
767 } // namespace extensions | 767 } // namespace extensions |
OLD | NEW |