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

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

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 private: 241 private:
242 friend struct DefaultSingletonTraits<ActivityLogFactory>; 242 friend struct DefaultSingletonTraits<ActivityLogFactory>;
243 ActivityLogFactory() 243 ActivityLogFactory()
244 : ProfileKeyedServiceFactory("ActivityLog", 244 : ProfileKeyedServiceFactory("ActivityLog",
245 ProfileDependencyManager::GetInstance()) {} 245 ProfileDependencyManager::GetInstance()) {}
246 virtual ~ActivityLogFactory() {} 246 virtual ~ActivityLogFactory() {}
247 247
248 virtual ProfileKeyedService* BuildServiceInstanceFor( 248 virtual ProfileKeyedService* BuildServiceInstanceFor(
249 content::BrowserContext* profile) const OVERRIDE; 249 content::BrowserContext* profile) const OVERRIDE;
250 250
251 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; 251 virtual content::BrowserContext* GetBrowserContextToUse(
252 content::BrowserContext* context) const OVERRIDE;
252 253
253 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); 254 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory);
254 }; 255 };
255 256
256 257
257 } // namespace extensions 258 } // namespace extensions
258 259
259 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_ 260 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_service_factory.cc ('k') | chrome/browser/extensions/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698