Commit 386f630f authored by Elodie Banel's avatar Elodie Banel Committed by Commit Bot

Send index value from content widget.

This value was assumed received on the histogram side but not sent,
resulting in an empty histogram.

Bug: None
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I58b4e97eca73f987db6380485d34ffe594329e1e
Reviewed-on: https://chromium-review.googlesource.com/758855Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Elodie Banel <lod@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515518}
parent f4f66e6c
...@@ -198,6 +198,8 @@ const CGFloat widgetCompactHeightIOS9 = 110; ...@@ -198,6 +198,8 @@ const CGFloat widgetCompactHeightIOS9 = 110;
app_group::kChromeAppGroupCommandCommandPreference); app_group::kChromeAppGroupCommandCommandPreference);
NSString* URLPrefKey = NSString* URLPrefKey =
base::SysUTF8ToNSString(app_group::kChromeAppGroupCommandURLPreference); base::SysUTF8ToNSString(app_group::kChromeAppGroupCommandURLPreference);
NSString* indexKey =
base::SysUTF8ToNSString(app_group::kChromeAppGroupCommandIndexPreference);
NSDictionary* commandDict = @{ NSDictionary* commandDict = @{
timePrefKey : [NSDate date], timePrefKey : [NSDate date],
...@@ -205,6 +207,7 @@ const CGFloat widgetCompactHeightIOS9 = 110; ...@@ -205,6 +207,7 @@ const CGFloat widgetCompactHeightIOS9 = 110;
commandPrefKey : commandPrefKey :
base::SysUTF8ToNSString(app_group::kChromeAppGroupOpenURLCommand), base::SysUTF8ToNSString(app_group::kChromeAppGroupOpenURLCommand),
URLPrefKey : URL.absoluteString, URLPrefKey : URL.absoluteString,
indexKey : [NSNumber numberWithInt:[self.sites objectForKey:URL].position]
}; };
[sharedDefaults setObject:commandDict forKey:defaultsKey]; [sharedDefaults setObject:commandDict forKey:defaultsKey];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment