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

Side by Side Diff: chrome/test/base/testing_profile.cc

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed IO/UI typo and rebased. 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
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/base/testing_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 755
756 CancelableRequestConsumer consumer; 756 CancelableRequestConsumer consumer;
757 history_service->ScheduleDBTask(new QuittingHistoryDBTask(), &consumer); 757 history_service->ScheduleDBTask(new QuittingHistoryDBTask(), &consumer);
758 MessageLoop::current()->Run(); 758 MessageLoop::current()->Run();
759 } 759 }
760 760
761 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() { 761 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() {
762 return NULL; 762 return NULL;
763 } 763 }
764 764
765 void TestingProfile::ClearNetworkingHistorySince(base::Time time) { 765 void TestingProfile::ClearNetworkingHistorySince(
766 NOTIMPLEMENTED(); 766 base::Time time,
767 const base::Closure& completion) {
768 if (!completion.is_null()) {
769 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion);
770 }
767 } 771 }
768 772
769 GURL TestingProfile::GetHomePage() { 773 GURL TestingProfile::GetHomePage() {
770 return GURL(chrome::kChromeUINewTabURL); 774 return GURL(chrome::kChromeUINewTabURL);
771 } 775 }
772 776
773 PrefService* TestingProfile::GetOffTheRecordPrefs() { 777 PrefService* TestingProfile::GetOffTheRecordPrefs() {
774 return NULL; 778 return NULL;
775 } 779 }
776 780
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { 828 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
825 DCHECK(!build_called_); 829 DCHECK(!build_called_);
826 build_called_ = true; 830 build_called_ = true;
827 return scoped_ptr<TestingProfile>(new TestingProfile( 831 return scoped_ptr<TestingProfile>(new TestingProfile(
828 path_, 832 path_,
829 delegate_, 833 delegate_,
830 extension_policy_, 834 extension_policy_,
831 pref_service_.Pass(), 835 pref_service_.Pass(),
832 user_cloud_policy_manager_.Pass())); 836 user_cloud_policy_manager_.Pass()));
833 } 837 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698