| Index: ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm
|
| diff --git a/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm b/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm
|
| index 3296d9d8f1da2ca8ae0b48706e3d8e90fee87e78..99d89ea16415c31cb909932bd84b21602bb7c6cd 100644
|
| --- a/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm
|
| +++ b/ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.mm
|
| @@ -6,6 +6,11 @@
|
|
|
| #include "base/strings/sys_string_conversions.h"
|
| #import "ios/chrome/browser/tabs/tab.h"
|
| +#import "ios/chrome/browser/tabs/tab_model.h"
|
| +
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
|
|
| TabModelSnapshot::TabModelSnapshot(TabModel* tabModel) {
|
| for (Tab* tab in tabModel) {
|
| @@ -31,7 +36,7 @@ size_t TabModelSnapshot::hashOfTheVisiblePropertiesOfATab(Tab* tab) {
|
| std::stringstream ss;
|
| // lastVisitedTimestamp is used as an approximation for whether the tab's
|
| // snapshot changed.
|
| - ss << tab.tabId << std::endl
|
| + ss << base::SysNSStringToUTF8(tab.tabId) << std::endl
|
| << base::SysNSStringToUTF8(tab.urlDisplayString) << std::endl
|
| << std::hexfloat << tab.lastVisitedTimestamp << std::endl;
|
| return std::hash<std::string>()(ss.str());
|
|
|