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

Unified Diff: chrome/browser/shell_integration.h

Issue 10963004: Fix registerProtocolHandler OS registration on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed blank line Created 8 years, 3 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/shell_integration.h
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h
index 55ddfcfc4960702e0dd42da49c4c3a6161a64eb9..ac1ad30811c25f7a5fb5d51762e26063d999a305 100644
--- a/chrome/browser/shell_integration.h
+++ b/chrome/browser/shell_integration.h
@@ -33,6 +33,14 @@ class ShellIntegration {
// (only for the current user). Returns false if this operation fails.
static bool SetAsDefaultProtocolClient(const std::string& protocol);
+ // Initiates an OS shell flow which (if followed by the user) should set
+ // Chrome as the default handler for |protocol|. Returns false if the flow
+ // cannot be initialized, if it is not supported (introduced for Windows 8)
+ // or if the user cancels the operation. This is a blocking call and requires
+ // a FILE thread.
+ static bool SetAsDefaultProtocolClientInteractive(
+ const std::string& protocol);
+
// In Windows 8 a browser can be made default-in-metro only in an interactive
// flow. We will distinguish between two types of permissions here to avoid
// forcing the user into UI interaction when this should not be done.

Powered by Google App Engine
This is Rietveld 408576698