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

Unified Diff: net/ssl/default_channel_id_store.cc

Issue 664803003: Update from chromium a8e7c94b1b79a0948d05a1fcfff53391d22ce37a (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | skia/ext/SkDiscardableMemory_chrome.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/default_channel_id_store.cc
diff --git a/net/ssl/default_channel_id_store.cc b/net/ssl/default_channel_id_store.cc
index b71d7b3507e13dda8267e21466fdc0e3cd2b35e3..60e06ed06e7e601d049edc231ad9f0c7097a3e4c 100644
--- a/net/ssl/default_channel_id_store.cc
+++ b/net/ssl/default_channel_id_store.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/metrics/histogram.h"
+#include "base/profiler/scoped_profile.h"
#include "net/base/net_errors.h"
namespace net {
@@ -61,6 +62,11 @@ DefaultChannelIDStore::GetChannelIDTask::~GetChannelIDTask() {
void DefaultChannelIDStore::GetChannelIDTask::Run(
DefaultChannelIDStore* store) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "425814 DefaultChannelIDStore::GetChannelIDTask::Run"));
+
base::Time expiration_time;
std::string private_key_result;
std::string cert_result;
@@ -112,6 +118,11 @@ DefaultChannelIDStore::SetChannelIDTask::~SetChannelIDTask() {
void DefaultChannelIDStore::SetChannelIDTask::Run(
DefaultChannelIDStore* store) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "425814 DefaultChannelIDStore::SetChannelIDTask::Run"));
+
store->SyncSetChannelID(server_identifier_, creation_time_,
expiration_time_, private_key_, cert_);
}
@@ -145,6 +156,11 @@ DefaultChannelIDStore::DeleteChannelIDTask::
void DefaultChannelIDStore::DeleteChannelIDTask::Run(
DefaultChannelIDStore* store) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "425814 DefaultChannelIDStore::DeleteChannelIDTask::Run"));
+
store->SyncDeleteChannelID(server_identifier_);
InvokeCallback(callback_);
@@ -183,6 +199,11 @@ DefaultChannelIDStore::DeleteAllCreatedBetweenTask::
void DefaultChannelIDStore::DeleteAllCreatedBetweenTask::Run(
DefaultChannelIDStore* store) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "425814 DefaultChannelIDStore::DeleteAllCreatedBetweenTask::Run"));
+
store->SyncDeleteAllCreatedBetween(delete_begin_, delete_end_);
InvokeCallback(callback_);
@@ -213,6 +234,11 @@ DefaultChannelIDStore::GetAllChannelIDsTask::
void DefaultChannelIDStore::GetAllChannelIDsTask::Run(
DefaultChannelIDStore* store) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "425814 DefaultChannelIDStore::GetAllChannelIDsTask::Run"));
+
ChannelIDList cert_list;
store->SyncGetAllChannelIDs(&cert_list);
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | skia/ext/SkDiscardableMemory_chrome.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698