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

Unified Diff: webkit/glue/webkit_glue.cc

Issue 151023002: Move the rest of webkit/glue into content/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm webkit_glue.gyp Created 6 years, 11 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 | « webkit/glue/webkit_glue.h ('k') | webkit/glue/webkit_glue.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkit_glue.cc
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc
deleted file mode 100644
index 05e7bca10a5e882751dcb136257fc9a14c6893c5..0000000000000000000000000000000000000000
--- a/webkit/glue/webkit_glue.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2013 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 "webkit/glue/webkit_glue.h"
-
-#include "base/logging.h"
-#include "third_party/WebKit/public/platform/WebFileInfo.h"
-
-namespace webkit_glue {
-
-void FileInfoToWebFileInfo(
- const base::File::Info& file_info,
- blink::WebFileInfo* web_file_info) {
- DCHECK(web_file_info);
- // WebKit now expects NaN as uninitialized/null Date.
- if (file_info.last_modified.is_null())
- web_file_info->modificationTime = std::numeric_limits<double>::quiet_NaN();
- else
- web_file_info->modificationTime = file_info.last_modified.ToDoubleT();
- web_file_info->length = file_info.size;
- if (file_info.is_directory)
- web_file_info->type = blink::WebFileInfo::TypeDirectory;
- else
- web_file_info->type = blink::WebFileInfo::TypeFile;
-}
-
-COMPILE_ASSERT(std::numeric_limits<double>::has_quiet_NaN, has_quiet_NaN);
-
-} // namespace webkit_glue
« no previous file with comments | « webkit/glue/webkit_glue.h ('k') | webkit/glue/webkit_glue.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698