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

Unified Diff: content/shell/shell_win.cc

Issue 10830260: Add local file system directory listings support for content shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« content/content_shell.gypi ('K') | « content/shell/shell_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_win.cc
===================================================================
--- content/shell/shell_win.cc (revision 150808)
+++ content/shell/shell_win.cc (working copy)
@@ -10,19 +10,12 @@
#include <windows.h>
#include "base/command_line.h"
-#include "base/string_piece.h"
#include "base/utf_string_conversions.h"
-#include "base/win/resource_util.h"
#include "base/win/wrapped_window_proc.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
#include "content/shell/resource.h"
#include "content/shell/shell_switches.h"
-#include "googleurl/src/gurl.h"
-#include "grit/webkit_resources.h"
-#include "grit/webkit_chromium_resources.h"
-#include "ipc/ipc_message.h"
-#include "net/base/net_module.h"
#include "ui/base/win/hwnd_util.h"
namespace {
@@ -35,15 +28,6 @@
const int kMaxURLLength = 1024;
-static base::StringPiece GetRawDataResource(HMODULE module, int resource_id) {
- void* data_ptr;
- size_t data_size;
- return base::win::GetDataResourceFromModule(module, resource_id, &data_ptr,
- &data_size)
- ? base::StringPiece(static_cast<char*>(data_ptr), data_size)
- : base::StringPiece();
-}
-
} // namespace
namespace content {
@@ -60,10 +44,6 @@
RegisterWindowClass();
}
-base::StringPiece Shell::PlatformResourceProvider(int key) {
- return GetRawDataResource(::GetModuleHandle(NULL), key);
-}
-
void Shell::PlatformExit() {
std::vector<Shell*> windows = windows_;
for (std::vector<Shell*>::iterator it = windows.begin();
« content/content_shell.gypi ('K') | « content/shell/shell_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698