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

Unified Diff: chrome/browser/external_protocol/external_protocol_handler.h

Issue 2623033006: [Re-landing] Migrate external protocol prefs from local state to profiles (Closed)
Patch Set: rebase Created 3 years, 10 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/external_protocol/external_protocol_handler.h
diff --git a/chrome/browser/external_protocol/external_protocol_handler.h b/chrome/browser/external_protocol/external_protocol_handler.h
index 99c0f0384b6acd059c5e9e22e8234277c4f0c0f8..e70e79bbb9471d3749dc9bd68bca1fcfebd57d13 100644
--- a/chrome/browser/external_protocol/external_protocol_handler.h
+++ b/chrome/browser/external_protocol/external_protocol_handler.h
@@ -14,6 +14,7 @@
class GURL;
class PrefRegistrySimple;
+class Profile;
namespace base {
class DictionaryValue;
@@ -34,7 +35,8 @@ class ExternalProtocolHandler {
CreateShellWorker(
const shell_integration::DefaultWebClientWorkerCallback& callback,
const std::string& protocol) = 0;
- virtual BlockState GetBlockState(const std::string& scheme) = 0;
+ virtual BlockState GetBlockState(const std::string& scheme,
+ Profile* profile) = 0;
virtual void BlockRequest() = 0;
virtual void RunExternalProtocolDialog(
const GURL& url,
@@ -50,10 +52,12 @@ class ExternalProtocolHandler {
};
// Returns whether we should block a given scheme.
- static BlockState GetBlockState(const std::string& scheme);
+ static BlockState GetBlockState(const std::string& scheme, Profile* profile);
// Sets whether we should block a given scheme.
- static void SetBlockState(const std::string& scheme, BlockState state);
+ static void SetBlockState(const std::string& scheme,
+ BlockState state,
+ Profile* profile);
// Checks to see if the protocol is allowed, if it is whitelisted,
// the application associated with the protocol is launched on the io thread,
« no previous file with comments | « chrome/browser/chrome_site_per_process_browsertest.cc ('k') | chrome/browser/external_protocol/external_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698