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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2800213002: Avoid duplicate functions/code in core/inspector.
Patch Set: Merge two UrlWithoutFragment() and two FrameId() functions. Created 3 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
Index: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
index 3d773e7446b08a0d1e2c2bdeeaeda401ed40f6de..1dc5728bba5cfa106bf4a4228811a00340a5eb35 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
@@ -206,12 +206,6 @@ class InspectorFileReaderLoaderClient final : public FileReaderLoaderClient {
RefPtr<SharedBuffer> raw_data_;
};
-KURL UrlWithoutFragment(const KURL& url) {
- KURL result = url;
- result.RemoveFragmentIdentifier();
- return result;
-}
-
String MixedContentTypeForContextType(WebMixedContentContextType context_type) {
switch (context_type) {
case WebMixedContentContextType::kNotMixedContent:

Powered by Google App Engine
This is Rietveld 408576698