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

Unified Diff: chrome/browser/sandbox_policy.cc

Issue 42158: Get rid of the gears in renderer process code. This allows me to do some cle... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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: chrome/browser/sandbox_policy.cc
===================================================================
--- chrome/browser/sandbox_policy.cc (revision 11593)
+++ chrome/browser/sandbox_policy.cc (working copy)
@@ -161,37 +161,6 @@
return true;
}
-bool AddPolicyForGearsInRenderer(sandbox::TargetPolicy* policy) {
- sandbox::ResultCode result;
-
- // TODO(mpcomplete): need to restrict access to database files only. This
- // is just temporary for debugging purposes.
- std::wstring plugin_data;
- if (!PathService::Get(chrome::DIR_USER_DATA, &plugin_data))
- return false;
- if (!win_util::ConvertToLongPath(plugin_data, &plugin_data))
- return false;
-
- file_util::AppendToPath(&plugin_data, L"*");
- result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES,
- sandbox::TargetPolicy::FILES_ALLOW_ANY,
- plugin_data.c_str());
- if (result != sandbox::SBOX_ALL_OK)
- return false;
-
- std::wstring temppath;
- if (!file_util::GetTempDir(&temppath))
- return false;
- file_util::AppendToPath(&temppath, L"*");
- result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES,
- sandbox::TargetPolicy::FILES_ALLOW_ANY,
- temppath.c_str());
- if (result != sandbox::SBOX_ALL_OK)
- return false;
-
- return true;
-}
-
bool AddGenericPolicy(sandbox::TargetPolicy* policy) {
sandbox::ResultCode result;

Powered by Google App Engine
This is Rietveld 408576698