| 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();
|
| }
|
|
|