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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 12952005: Delay bookmarks load while the profile is loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix testing_profile.h Created 7 years, 9 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
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/profiles/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/deferred_sequenced_task_runner.h"
10 #include "base/file_util.h" 11 #include "base/file_util.h"
11 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/path_service.h" 14 #include "base/path_service.h"
14 #include "base/prefs/json_pref_store.h" 15 #include "base/prefs/json_pref_store.h"
15 #include "base/string_util.h" 16 #include "base/string_util.h"
16 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
17 #include "build/build_config.h" 18 #include "build/build_config.h"
18 #include "chrome/browser/background/background_contents_service_factory.h" 19 #include "chrome/browser/background/background_contents_service_factory.h"
19 #include "chrome/browser/browser_process.h" 20 #include "chrome/browser/browser_process.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 190
190 base::FilePath OffTheRecordProfileImpl::GetPath() { 191 base::FilePath OffTheRecordProfileImpl::GetPath() {
191 return profile_->GetPath(); 192 return profile_->GetPath();
192 } 193 }
193 194
194 scoped_refptr<base::SequencedTaskRunner> 195 scoped_refptr<base::SequencedTaskRunner>
195 OffTheRecordProfileImpl::GetIOTaskRunner() { 196 OffTheRecordProfileImpl::GetIOTaskRunner() {
196 return profile_->GetIOTaskRunner(); 197 return profile_->GetIOTaskRunner();
197 } 198 }
198 199
200 scoped_refptr<base::DeferredSequencedTaskRunner>
201 OffTheRecordProfileImpl::GetBookmarksTaskRunner() {
202 return profile_->GetBookmarksTaskRunner();
203 }
204
199 bool OffTheRecordProfileImpl::IsOffTheRecord() const { 205 bool OffTheRecordProfileImpl::IsOffTheRecord() const {
200 return true; 206 return true;
201 } 207 }
202 208
203 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() { 209 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() {
204 return this; 210 return this;
205 } 211 }
206 212
207 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() { 213 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() {
208 // Suicide is bad! 214 // Suicide is bad!
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 case HostZoomMap::ZOOM_CHANGED_FOR_HOST: 479 case HostZoomMap::ZOOM_CHANGED_FOR_HOST:
474 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level); 480 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level);
475 return; 481 return;
476 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST: 482 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST:
477 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme, 483 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme,
478 change.host, 484 change.host,
479 change.zoom_level); 485 change.zoom_level);
480 return; 486 return;
481 } 487 }
482 } 488 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698