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

Unified Diff: chrome/browser/component_updater/component_updater_interceptor.cc

Issue 7601019: Component updater eight piece (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/browser/component_updater/component_updater_interceptor.cc
===================================================================
--- chrome/browser/component_updater/component_updater_interceptor.cc (revision 95451)
+++ chrome/browser/component_updater/component_updater_interceptor.cc (working copy)
@@ -9,7 +9,8 @@
#include "net/url_request/url_request_test_job.h"
#include "testing/gtest/include/gtest/gtest.h"
-ComponentUpdateInterceptor::ComponentUpdateInterceptor() {
+ComponentUpdateInterceptor::ComponentUpdateInterceptor()
+ : hit_count_(0) {
net::URLRequest::Deprecated::RegisterRequestInterceptor(this);
}
@@ -34,6 +35,7 @@
return NULL;
}
const Response& response = it->second;
+ ++hit_count_;
std::string contents;
EXPECT_TRUE(file_util::ReadFileToString(response.data_path, &contents));

Powered by Google App Engine
This is Rietveld 408576698