: title_(base::UTF16ToUTF8(web_contents->GetTitle())),
url_(web_contents->GetURL()),
favicon_url_(GetFaviconURL(web_contents)),
- last_activity_time_(web_contents->GetLastSelectedTime()) {
+ last_activity_time_(web_contents->GetLastActiveTime()) {
}
TargetBase(const base::string16& title, const GURL& url)
if (top_sites) {
scoped_refptr<base::RefCountedMemory> data;
if (top_sites->GetPageThumbnail(url, false, &data))
- return std::string(reinterpret_cast<const char*>(data->front()),
- data->size());
+ return std::string(data->front_as<char>(), data->size());
}
return "";
}