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

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: Removed superflous empty line. 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
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..ca4efc7ad927bcc1ebb632ac4ff36ec90fe6de82 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -784,8 +784,12 @@ 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) {
+ if (!completion.is_null()) {
+ BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, completion);
mmenke 2012/10/25 20:15:52 IMPORTANT: The completion should be run on the UI
engedy 2012/10/25 21:47:43 Duh! Thanks for spotting that.
+ }
}
GURL TestingProfile::GetHomePage() {
« chrome/browser/profiles/profile_impl_io_data.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