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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style 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 #include "chrome/browser/sessions/in_memory_tab_restore_service.h" 5 #include "chrome/browser/sessions/in_memory_tab_restore_service.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/sessions/tab_restore_service_factory.h" 9 #include "chrome/browser/sessions/tab_restore_service_factory.h"
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return true; 79 return true;
80 } 80 }
81 81
82 void InMemoryTabRestoreService::DeleteLastSession() { 82 void InMemoryTabRestoreService::DeleteLastSession() {
83 // See comment above. 83 // See comment above.
84 } 84 }
85 85
86 void InMemoryTabRestoreService::Shutdown() { 86 void InMemoryTabRestoreService::Shutdown() {
87 } 87 }
88 88
89 ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( 89 BrowserContextKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor(
90 content::BrowserContext* profile) const { 90 content::BrowserContext* profile) const {
91 return new InMemoryTabRestoreService(static_cast<Profile*>(profile), NULL); 91 return new InMemoryTabRestoreService(static_cast<Profile*>(profile), NULL);
92 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698