Chromium Code Reviews| 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..443607584fe09b5741d4165ef8b4583120c17d79 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 >= (int)chrome::GetTotalBrowserCount())) { |
|
sky
2013/02/12 00:44:52
static_cast (I think for .mm files too)
gab
2013/02/12 03:53:52
Done.
|
| AppleScript::SetError(AppleScript::errWrongIndex); |
| return; |
| } |