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

Unified Diff: chrome/browser/page_cycler/page_cycler.cc

Issue 10551002: TabContentsWrapper -> TabContents, part 56. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Not killing GetSelectedWebContents yet Created 8 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/page_cycler/page_cycler.cc
diff --git a/chrome/browser/page_cycler/page_cycler.cc b/chrome/browser/page_cycler/page_cycler.cc
index 4585ffa17fb6048cbba8a8f2fa392b8d6111afa2..c6d5bb04dd37422f2ac89d212b2a4d173710b532 100644
--- a/chrome/browser/page_cycler/page_cycler.cc
+++ b/chrome/browser/page_cycler/page_cycler.cc
@@ -29,7 +29,7 @@ using content::WebContents;
PageCycler::PageCycler(Browser* browser,
const FilePath& urls_file)
- : content::WebContentsObserver(browser->GetSelectedWebContents()),
+ : content::WebContentsObserver(browser->GetActiveWebContents()),
browser_(browser),
urls_file_(urls_file),
url_index_(0),
@@ -132,7 +132,7 @@ void PageCycler::BeginCycle() {
// result in the browser being in a state of loading when PageCycler is ready
// to start. Instead of interrupting the load, we wait for it to finish, and
// will call LoadNextURL() from DidFinishLoad() or DidFailProvisionalLoad().
- if (browser_->GetSelectedWebContents()->IsLoading())
+ if (browser_->GetActiveWebContents()->IsLoading())
return;
LoadNextURL();
}
« no previous file with comments | « chrome/browser/net/load_timing_observer_browsertest.cc ('k') | chrome/browser/page_cycler/page_cycler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698