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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2164553002: Refactoring: Hide or remove some methods of Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) Created 4 years, 5 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 | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index da4ad55da5b1c081add729780ce15ac690f786bc..56714095d10e2511f46391547347091d1683cdaa 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -1106,42 +1106,4 @@ bool Resource::isLoadEventBlockingResourceType() const
return false;
}
-// Do not modify existing strings below because they are used as UMA names.
-// https://crbug.com/579496
-const char* Resource::resourceTypeName(Resource::Type type)
-{
- switch (type) {
- case Resource::MainResource:
- return "MainResource";
- case Resource::Image:
- return "Image";
- case Resource::CSSStyleSheet:
- return "CSSStyleSheet";
- case Resource::Script:
- return "Script";
- case Resource::Font:
- return "Font";
- case Resource::Raw:
- return "Raw";
- case Resource::SVGDocument:
- return "SVGDocument";
- case Resource::XSLStyleSheet:
- return "XSLStyleSheet";
- case Resource::LinkPrefetch:
- return "LinkPrefetch";
- case Resource::LinkPreload:
- return "LinkPreload";
- case Resource::TextTrack:
- return "TextTrack";
- case Resource::ImportResource:
- return "ImportResource";
- case Resource::Media:
- return "Media";
- case Resource::Manifest:
- return "Manifest";
- }
- ASSERT_NOT_REACHED();
- return "Unknown";
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698