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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc

Issue 1349163008: Setting chrome as the default browser is now fixed on Windows 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Now using OpenWith.exe to open the http url Created 5 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/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 f246291f46b1c3ce59aa09842efc656f7e161598..759f226f32da494f3b28dde5a19c145c78476845 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
@@ -234,7 +234,12 @@ class FakeProtocolClientWorker
}
}
- bool SetAsDefault(bool interactive_permitted) override { return true; }
+ void SetAsDefault(bool interactive_permitted) override {
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
+ base::Bind(&FakeProtocolClientWorker::CompleteSetAsDefault, this,
+ true));
+ }
private:
bool force_failure_;

Powered by Google App Engine
This is Rietveld 408576698