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

Side by Side Diff: chrome/browser/extensions/activity_log.h

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for review Created 7 years, 8 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 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 static ActivityLogFactory* GetInstance(); 222 static ActivityLogFactory* GetInstance();
223 223
224 private: 224 private:
225 friend struct DefaultSingletonTraits<ActivityLogFactory>; 225 friend struct DefaultSingletonTraits<ActivityLogFactory>;
226 ActivityLogFactory() 226 ActivityLogFactory()
227 : ProfileKeyedServiceFactory("ActivityLog", 227 : ProfileKeyedServiceFactory("ActivityLog",
228 ProfileDependencyManager::GetInstance()) {} 228 ProfileDependencyManager::GetInstance()) {}
229 virtual ~ActivityLogFactory() {} 229 virtual ~ActivityLogFactory() {}
230 230
231 virtual ProfileKeyedService* BuildServiceInstanceFor( 231 virtual ProfileKeyedService* BuildServiceInstanceFor(
232 Profile* profile) const OVERRIDE; 232 content::BrowserContext* profile) const OVERRIDE;
233 233
234 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; 234 virtual bool ServiceRedirectedInIncognito() const OVERRIDE;
235 235
236 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); 236 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory);
237 }; 237 };
238 238
239 239
240 } // namespace extensions 240 } // namespace extensions
241 241
242 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ 242 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698