| Index: chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| diff --git a/chrome/browser/ui/cocoa/applescript/window_applescript.mm b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| index 1f3b7bbd8f128cf10917655e4ca088574e17a8b3..f42ef2fe5ccf43a0151c7a2161546e2850d6a314 100644
|
| --- a/chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| +++ b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
| @@ -13,7 +13,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_commands.h"
|
| -#include "chrome/browser/ui/browser_list.h"
|
| +#include "chrome/browser/ui/browser_finder.h"
|
| #include "chrome/browser/ui/browser_navigator.h"
|
| #include "chrome/browser/ui/browser_tabstrip.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| @@ -212,7 +212,7 @@
|
|
|
| - (void)setOrderedIndex:(NSNumber*)anIndex {
|
| int index = [anIndex intValue] - 1;
|
| - if (index < 0 || index >= (int)BrowserList::size()) {
|
| + if (index < 0 || index >= static_cast<int>(chrome::GetTotalBrowserCount())) {
|
| AppleScript::SetError(AppleScript::errWrongIndex);
|
| return;
|
| }
|
|
|