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

Unified Diff: chrome/browser/shell_integration_win.cc

Issue 9863026: Allow external protocol handlers to open in Windows 8. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration_win.cc
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index 0aa9d94eccd11ee22e59fddf19969d20d268fa8a..f4b75e6edabdcc154aaf245823845e70ffdbc256 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -373,7 +373,10 @@ ShellIntegration::DefaultWebClientState
string16 wprotocol = UTF8ToUTF16(protocol);
- if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
+ // Windows 8 has removed the ability to ask about the default handlers.
+ return UNKNOWN_DEFAULT_WEB_CLIENT;
+ } else if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
base::win::ScopedComPtr<IApplicationAssociationRegistration> pAAR;
HRESULT hr = pAAR.CreateInstance(CLSID_ApplicationAssociationRegistration,
NULL, CLSCTX_INPROC);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698