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

Unified Diff: net/url_request/sdch_dictionary_fetcher.cc

Issue 2315613002: Extracted NetLog class's inner enum types into their own enum classes and (Closed)
Patch Set: Created 4 years, 3 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: net/url_request/sdch_dictionary_fetcher.cc
diff --git a/net/url_request/sdch_dictionary_fetcher.cc b/net/url_request/sdch_dictionary_fetcher.cc
index eae6440ffc597c48f2272376efacd96a453d2cfc..75ab2afcc3d7c5f777d76c90fb23835d6b3262e3 100644
--- a/net/url_request/sdch_dictionary_fetcher.cc
+++ b/net/url_request/sdch_dictionary_fetcher.cc
@@ -18,6 +18,7 @@
#include "net/base/sdch_net_log_params.h"
#include "net/http/http_response_headers.h"
#include "net/log/net_log.h"
+#include "net/log/net_log_event_type.h"
#include "net/url_request/redirect_info.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_status.h"
@@ -37,7 +38,7 @@ int GetReadResult(int rv, const URLRequest* request) {
if (rv < 0) {
rv = ERR_FAILED;
request->net_log().AddEventWithNetErrorCode(
- NetLog::TYPE_SDCH_DICTIONARY_FETCH_IMPLIED_ERROR, rv);
+ NetLogEventType::SDCH_DICTIONARY_FETCH_IMPLIED_ERROR, rv);
}
return rv;
@@ -290,7 +291,7 @@ int SdchDictionaryFetcher::DoSendRequest(int rv) {
current_callback_ = info.callback;
current_request_->Start();
- current_request_->net_log().AddEvent(NetLog::TYPE_SDCH_DICTIONARY_FETCH);
+ current_request_->net_log().AddEvent(NetLogEventType::SDCH_DICTIONARY_FETCH);
return ERR_IO_PENDING;
}

Powered by Google App Engine
This is Rietveld 408576698