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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 1657933003: Fixes the interactive default browser UX for policy setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 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
« no previous file with comments | « no previous file | chrome/browser/custom_handlers/protocol_handler_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 005f950374b6ee6888864fcea294a8644fdb82b8..fff4f1c294ad9b8c726f26034e217cc4355063fc 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -1196,8 +1196,15 @@ void BrowserProcessImpl::CreateGCMDriver() {
void BrowserProcessImpl::ApplyDefaultBrowserPolicy() {
if (local_state()->GetBoolean(prefs::kDefaultBrowserSettingEnabled)) {
- scoped_refptr<ShellIntegration::DefaultWebClientWorker>
- set_browser_worker = new ShellIntegration::DefaultBrowserWorker(NULL);
+ bool delete_observer =
Patrick Monette 2016/02/10 17:26:42 Woops this isn't compiling. Fixed with the rebase.
+ false scoped_refptr<ShellIntegration::DefaultWebClientWorker>
+ set_browser_worker = new ShellIntegration::DefaultBrowserWorker(
+ nullptr,
+ /*delete_observer=*/false);
+ // The user interaction must always be disabled when applying the default
+ // browser policy since it is done at each browser startup and the result
+ // of the interaction cannot be forced.
+ set_browser_worker->set_interactive_permitted(false);
set_browser_worker->StartSetAsDefault();
}
}
« no previous file with comments | « no previous file | chrome/browser/custom_handlers/protocol_handler_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698