diff options
author | rtenneti <rtenneti@chromium.org> | 2015-05-12 12:22:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-12 19:23:59 +0000 |
commit | 848d07dfae3bd43c0573bceb311cdb92b4da53d9 (patch) | |
tree | 52d8f6d6f93d76291744c4b461e88a4a276accec /net/http/http_server_properties_manager_unittest.cc | |
parent | a666b56d05b0722ff1a89d22a6f8885fe7a202b8 (diff) | |
download | chromium_src-848d07dfae3bd43c0573bceb311cdb92b4da53d9.zip chromium_src-848d07dfae3bd43c0573bceb311cdb92b4da53d9.tar.gz chromium_src-848d07dfae3bd43c0573bceb311cdb92b4da53d9.tar.bz2 |
HttpServerProperties - Track UpdatePrefs callers. In offical builds, on
Mac we had noticed UpdatePrefs is being called a lot. Would like to
track the caller (we think it could be extensions).
BUG=485314, 451256, 431476
R=mmenke@chromium.org, asvitkine@chromium.org
Review URL: https://codereview.chromium.org/1139843002
Cr-Commit-Position: refs/heads/master@{#329452}
Diffstat (limited to 'net/http/http_server_properties_manager_unittest.cc')
-rw-r--r-- | net/http/http_server_properties_manager_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_server_properties_manager_unittest.cc b/net/http/http_server_properties_manager_unittest.cc index 55dc7b8..7ab6ef0 100644 --- a/net/http/http_server_properties_manager_unittest.cc +++ b/net/http/http_server_properties_manager_unittest.cc @@ -67,6 +67,12 @@ class TestingHttpServerPropertiesManager : public HttpServerPropertiesManager { HttpServerPropertiesManager::UpdatePrefsFromCacheOnNetworkThread(callback); } + void ScheduleUpdatePrefsOnNetworkThread() { + // Picked a random Location as caller. + HttpServerPropertiesManager::ScheduleUpdatePrefsOnNetworkThread( + DETECTED_CORRUPTED_PREFS); + } + MOCK_METHOD0(UpdateCacheFromPrefsOnPrefThread, void()); MOCK_METHOD1(UpdatePrefsFromCacheOnNetworkThread, void(const base::Closure&)); MOCK_METHOD6(UpdateCacheFromPrefsOnNetworkThread, |