| Index: chrome/browser/ui/tabs/tab_strip_model_utils.cc
|
| diff --git a/chrome/browser/ui/tabs/tab_strip_model_utils.cc b/chrome/browser/ui/tabs/tab_strip_model_utils.cc
|
| index 2605dd7532e361f432d4f0e4eb20c5f57b37a003..ed09b85658dde0e6e330b97716d7913342d35246 100644
|
| --- a/chrome/browser/ui/tabs/tab_strip_model_utils.cc
|
| +++ b/chrome/browser/ui/tabs/tab_strip_model_utils.cc
|
| @@ -4,7 +4,9 @@
|
|
|
| #include "chrome/browser/ui/tabs/tab_strip_model_utils.h"
|
|
|
| +#include "chrome/browser/history/top_sites.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| +#include "content/public/browser/web_contents.h"
|
|
|
| namespace chrome {
|
|
|
| @@ -18,4 +20,14 @@ int IndexOfFirstBlockedTab(const TabStripModel* model) {
|
| return model->count();
|
| }
|
|
|
| +void GetOpenUrls(const TabStripModel& tabs,
|
| + const history::TopSites& top_sites,
|
| + std::set<std::string>* urls) {
|
| + for (int i = 0; i < tabs.count(); ++i) {
|
| + content::WebContents* web_contents = tabs.GetWebContentsAt(i);
|
| + if (web_contents)
|
| + urls->insert(top_sites.GetCanonicalURLString(web_contents->GetURL()));
|
| + }
|
| +}
|
| +
|
| } // namespace chrome
|
|
|