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

Side by Side Diff: chrome/browser/extensions/extension_prefs.cc

Issue 7574017: Make extension file URL access opt-in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep LOAD the same Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_prefs.h" 5 #include "chrome/browser/extensions/extension_prefs.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/extensions/extension_pref_store.h" 10 #include "chrome/browser/extensions/extension_pref_store.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const char kIdleInstallInfoCrxPath[] = "crx_path"; 67 const char kIdleInstallInfoCrxPath[] = "crx_path";
68 const char kIdleInstallInfoVersion[] = "version"; 68 const char kIdleInstallInfoVersion[] = "version";
69 const char kIdleInstallInfoFetchTime[] = "fetch_time"; 69 const char kIdleInstallInfoFetchTime[] = "fetch_time";
70 70
71 // A preference that, if true, will allow this extension to run in incognito 71 // A preference that, if true, will allow this extension to run in incognito
72 // mode. 72 // mode.
73 const char kPrefIncognitoEnabled[] = "incognito"; 73 const char kPrefIncognitoEnabled[] = "incognito";
74 74
75 // A preference to control whether an extension is allowed to inject script in 75 // A preference to control whether an extension is allowed to inject script in
76 // pages with file URLs. 76 // pages with file URLs.
77 const char kPrefAllowFileAccess[] = "allowFileAccess"; 77 const char kPrefAllowFileAccess[] = "newAllowFileAccess";
78 // TODO(jstritar): As part of fixing http://crbug.com/91577, we revoked all
79 // extension file access by renaming the pref. We should eventually clean up
80 // the old flag and possibly go back to that name.
81 // const char kPrefAllowFileAccessOld[] = "allowFileAccess";
78 82
79 // A preference set by the web store to indicate login information for 83 // A preference set by the web store to indicate login information for
80 // purchased apps. 84 // purchased apps.
81 const char kWebStoreLogin[] = "extensions.webstore_login"; 85 const char kWebStoreLogin[] = "extensions.webstore_login";
82 86
83 // A preference set by the the NTP to persist the desired launch container type 87 // A preference set by the the NTP to persist the desired launch container type
84 // used for apps. 88 // used for apps.
85 const char kPrefLaunchType[] = "launchType"; 89 const char kPrefLaunchType[] = "launchType";
86 90
87 // A preference determining the order of which the apps appear on the NTP. 91 // A preference determining the order of which the apps appear on the NTP.
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 prefs->RegisterListPref(prefs::kExtensionInstallAllowList, 1669 prefs->RegisterListPref(prefs::kExtensionInstallAllowList,
1666 PrefService::UNSYNCABLE_PREF); 1670 PrefService::UNSYNCABLE_PREF);
1667 prefs->RegisterListPref(prefs::kExtensionInstallDenyList, 1671 prefs->RegisterListPref(prefs::kExtensionInstallDenyList,
1668 PrefService::UNSYNCABLE_PREF); 1672 PrefService::UNSYNCABLE_PREF);
1669 prefs->RegisterListPref(prefs::kExtensionInstallForceList, 1673 prefs->RegisterListPref(prefs::kExtensionInstallForceList,
1670 PrefService::UNSYNCABLE_PREF); 1674 PrefService::UNSYNCABLE_PREF);
1671 prefs->RegisterStringPref(kWebStoreLogin, 1675 prefs->RegisterStringPref(kWebStoreLogin,
1672 std::string() /* default_value */, 1676 std::string() /* default_value */,
1673 PrefService::UNSYNCABLE_PREF); 1677 PrefService::UNSYNCABLE_PREF);
1674 } 1678 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698