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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #include "chrome/browser/sessions/persistent_tab_restore_service.h" 5 #include "chrome/browser/sessions/persistent_tab_restore_service.h"
6 6
7 #include <cstring> // memcpy 7 #include <cstring> // memcpy
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 968
969 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() { 969 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() {
970 return &helper_.entries_; 970 return &helper_.entries_;
971 } 971 }
972 972
973 void PersistentTabRestoreService::PruneEntries() { 973 void PersistentTabRestoreService::PruneEntries() {
974 helper_.PruneEntries(); 974 helper_.PruneEntries();
975 } 975 }
976 976
977 ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( 977 ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor(
978 Profile* profile) const { 978 content::BrowserContext* profile) const {
979 return new PersistentTabRestoreService(profile, NULL); 979 return new PersistentTabRestoreService(static_cast<Profile*>(profile), NULL);
980 } 980 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698