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

Side by Side Diff: chrome/browser/ui/tabs/tab_strip_model_utils.cc

Issue 2567043002: Cleanup: Remove unused SearchTabHelper::GetOpenUrls (Closed)
Patch Set: msw nits Created 4 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/tabs/tab_strip_model_utils.h"
6
7 #include "chrome/browser/ui/tabs/tab_strip_model.h"
8 #include "components/history/core/browser/top_sites.h"
9 #include "content/public/browser/web_contents.h"
10
11 namespace chrome {
12
13 void GetOpenUrls(const TabStripModel& tabs,
14 const history::TopSites& top_sites,
15 std::set<std::string>* urls) {
16 for (int i = 0; i < tabs.count(); ++i) {
17 content::WebContents* web_contents = tabs.GetWebContentsAt(i);
18 if (web_contents)
19 urls->insert(top_sites.GetCanonicalURLString(web_contents->GetURL()));
20 }
21 }
22
23 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698