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

Unified Diff: Source/platform/PlatformResourceLoader.cpp

Issue 438843004: Move the user agent styles sheets to blink_resources.grd (Part 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed header inclusion. Created 6 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: Source/platform/PlatformResourceLoader.cpp
diff --git a/Source/platform/PlatformResourceLoader.cpp b/Source/platform/PlatformResourceLoader.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..fc6bc85641f6d0859119a4cb91a04fc387bff93d
--- /dev/null
+++ b/Source/platform/PlatformResourceLoader.cpp
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "PlatformResourceLoader.h"
+
+#include "public/platform/Platform.h"
+#include "public/platform/WebData.h"
+
+namespace blink {
+
+inline WTF::String loadResourceAsASCIIString(const char* resource)
eseidel 2014/09/04 07:05:34 inline doesn't do anything here. No need for the
vivekg 2014/09/04 07:44:28 Done.
+{
+ const WebData& resourceData = Platform::current()->loadResource(resource);
+ String dataString = resourceData.toASCIIString();
+ ASSERT(!dataString.isEmpty());
+ return dataString;
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698