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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_unittest.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: Fix merge issue 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
Index: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
index 094659952fbaf0019f96101fdd31f91e2a2ee216..2ddfae0bedddfa5fafb0bdb00291efc012e79b47 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
@@ -224,7 +224,10 @@ class FakeProtocolClientWorker
shell_integration::DefaultWebClientObserver* observer,
const std::string& protocol,
bool force_failure)
- : shell_integration::DefaultProtocolClientWorker(observer, protocol),
+ : shell_integration::DefaultProtocolClientWorker(
+ observer,
+ protocol,
+ /*delete_observer*/ true),
force_failure_(force_failure) {}
private:
@@ -242,7 +245,7 @@ class FakeProtocolClientWorker
state));
}
- void SetAsDefault(bool interactive_permitted) override {
+ void SetAsDefault() override {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&FakeProtocolClientWorker::OnSetAsDefaultAttemptComplete,

Powered by Google App Engine
This is Rietveld 408576698