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

Unified Diff: mojo/shell/network_delegate.cc

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues Created 7 years 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: mojo/shell/network_delegate.cc
diff --git a/mojo/shell/network_delegate.cc b/mojo/shell/network_delegate.cc
index e27d1adc7179470490ac17f00f7747c6f13c9e45..30054d30c0982e4d59ec0c67823ddf8713654e59 100644
--- a/mojo/shell/network_delegate.cc
+++ b/mojo/shell/network_delegate.cc
@@ -4,8 +4,6 @@
#include "mojo/shell/network_delegate.h"
-#include "base/command_line.h"
-#include "mojo/shell/switches.h"
#include "net/url_request/url_request.h"
namespace mojo {
@@ -17,10 +15,8 @@ NetworkDelegate::NetworkDelegate() {
bool NetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
const base::FilePath& path) const {
- // TODO(aa): We might want to add a --allow-file-urls or something, but
- // starting conservative.
- return CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switches::kApp)
- == request.url().spec();
+ // TODO(davemoore): Implement.
+ return true;
}
} // namespace shell

Powered by Google App Engine
This is Rietveld 408576698