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

Unified Diff: chrome/installer/util/shell_util.cc

Issue 10539169: Prototype version of the first-run dialog for Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: An oops. Created 8 years, 6 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/installer/util/shell_util.cc
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 229abe52f79b9b56664f144c7750c697bdd8306b..3d7a990064ae51300e4c742a9eeac6e8ea8fc8da 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -613,7 +613,7 @@ bool LaunchSelectDefaultProtocolHandlerDialog(const wchar_t* protocol) {
if (FAILED(hr))
return false;
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
- return true;
+ return SUCCEEDED(hr);
grt (UTC plus 2) 2012/06/21 15:18:43 SUCCEEDED(hr) -> true
motek. 2012/06/21 18:28:10 Done.
}
// Launches the Windows 7 and Windows 8 application association dialog, which
@@ -1241,6 +1241,7 @@ bool ShellUtil::ShowMakeChromeDefaultSystemUI(BrowserDistribution* dist,
// "Set Program Associations" section of the "Default Programs"
// control panel, which is a mess, or pop the concise "How you want to open
// webpages?" dialog. We choose the latter.
+ // Return true only when the user took an action and there was no error.
return LaunchSelectDefaultProtocolHandlerDialog(L"http");
}
« chrome/browser/ui/webui/metroizer_ui_win.cc ('K') | « chrome/common/url_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698