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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 1000723003: handoff: Fix the origin so that it correctly reflects the sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | components/handoff/handoff_manager.h » ('j') | components/handoff/handoff_manager.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 866f7c009875b50a5bcb09b28ded63f4c8085fff..d77560a3392ca74bf28ad69ab49d631473edde2b 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -1672,8 +1672,10 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
if (![self shouldUseHandoff])
return;
- if (!handoffManager_)
- handoffManager_.reset([[HandoffManager alloc] init]);
+ if (!handoffManager_) {
+ handoffManager_.reset(
+ [[HandoffManager alloc] initWithOrigin:handoff::ORIGIN_MAC]);
+ }
GURL handoffURL = [self handoffURLFromWebContents:webContents];
[self passURLToHandoffManager:handoffURL];
« no previous file with comments | « no previous file | components/handoff/handoff_manager.h » ('j') | components/handoff/handoff_manager.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698