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

Side by Side Diff: chrome/browser/extensions/api/identity/identity_api.cc

Issue 148083014: ExtensionSystem cleanup part 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698