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

Unified 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: Missing newline at EOF. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« chrome/test/base/testing_profile.h ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 63eab1b5640d4241d6d69afacbdde8714495f23d..5682d8010a0588496b779705e2523c74ca890dd4 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -483,6 +483,12 @@ TestingPrefService* TestingProfile::GetTestingPrefService() {
return testing_prefs_;
}
+void TestingProfile::CreateSkeletonIODataForTesting() {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ io_data_.reset(new ProfileImplIOData::Handle(this));
+ io_data_->InitForTesting();
+}
+
TestingProfile* TestingProfile::AsTestingProfile() {
return this;
}
@@ -784,8 +790,11 @@ chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() {
return NULL;
}
-void TestingProfile::ClearNetworkingHistorySince(base::Time time) {
- NOTIMPLEMENTED();
+void TestingProfile::ClearNetworkingHistorySince(
+ base::Time time,
+ const base::Closure& completion) {
+ DCHECK(io_data_.get());
+ io_data_->ClearNetworkingHistorySince(time, completion);
}
GURL TestingProfile::GetHomePage() {
« chrome/test/base/testing_profile.h ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698