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

Side by Side Diff: chrome/browser/chromeos/session_length_limiter_factory.h

Issue 11499012: Add policy for limiting the session length (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Not sure why the patch is not applying - bot source out of sync with ToT? Created 8 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_FACTORY_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/singleton.h"
11 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
12
13 class Profile;
14
15 namespace chromeos {
16
17 class SessionLengthLimiter;
18 class SessionLengthLimiterTest;
19
20 class SessionLengthLimiterFactory : public ProfileKeyedServiceFactory {
21 public:
22 static SessionLengthLimiterFactory* GetInstance();
23
24 private:
25 friend struct DefaultSingletonTraits<SessionLengthLimiterFactory>;
26 friend class SessionLengthLimiterTest;
27
28 SessionLengthLimiterFactory();
29 virtual ~SessionLengthLimiterFactory();
30
31 // ProfileKeyedServiceFactory:
32 virtual ProfileKeyedService* BuildServiceInstanceFor(
33 Profile* profile) const OVERRIDE;
34 virtual void RegisterUserPrefs(PrefService* prefs) OVERRIDE;
35 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
Mattias Nissler (ping if slow) 2012/12/12 10:12:57 That's interesting. In Chrome OS, there are at lea
bartfab (slow) 2012/12/13 16:22:48 Your are right. This did not work. I refactored th
36 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
37
38 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiterFactory);
39 };
40
41 } // namespace chromeos
42
43 #endif // CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698