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

Side by Side Diff: chrome/browser/sessions/tab_restore_service_factory.cc

Issue 10989027: Split TabRestoreService into InMemoryTRS and PersistentTRS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GYP out InMemoryTRS on non-Android and fix incorrect comments Created 8 years, 1 month 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/sessions/tab_restore_service_factory.h" 5 #include "chrome/browser/sessions/tab_restore_service_factory.h"
6 6
7 #include "chrome/browser/profiles/profile_dependency_manager.h" 7 #include "chrome/browser/profiles/profile_dependency_manager.h"
8 #include "chrome/browser/sessions/tab_restore_service.h" 8 #include "chrome/browser/sessions/tab_restore_service.h"
9 9
10 // static 10 // static
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 TabRestoreServiceFactory::TabRestoreServiceFactory() 34 TabRestoreServiceFactory::TabRestoreServiceFactory()
35 : ProfileKeyedServiceFactory("TabRestoreService", 35 : ProfileKeyedServiceFactory("TabRestoreService",
36 ProfileDependencyManager::GetInstance()) { 36 ProfileDependencyManager::GetInstance()) {
37 } 37 }
38 38
39 TabRestoreServiceFactory::~TabRestoreServiceFactory() { 39 TabRestoreServiceFactory::~TabRestoreServiceFactory() {
40 } 40 }
41 41
42 ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor(
43 Profile* profile) const {
44 TabRestoreService* service = NULL;
45 service = new TabRestoreService(profile);
46 return service;
47 }
48
49 bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() const { 42 bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() const {
50 return true; 43 return true;
51 } 44 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/tab_restore_service_browsertest.cc ('k') | chrome/browser/sessions/tab_restore_service_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698