| Index: chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm
|
| diff --git a/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm b/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm
|
| index 8bad0bf0a7bba2273bc901a6c3d7e8717751980f..7341835b372e3527306b29bcf4a07474317b3d93 100644
|
| --- a/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm
|
| @@ -16,8 +16,6 @@
|
| #include "grit/ui_strings.h"
|
| #include "ui/base/l10n/l10n_util_mac.h"
|
| #include "ui/base/ui_base_types.h"
|
| -
|
| -const int kMessageTextMaxRows = 32;
|
|
|
| // Helper object that receives the notification that the dialog/sheet is
|
| // going away. Is responsible for cleaning itself up.
|
| @@ -148,18 +146,6 @@
|
| [alert_ setDelegate:helper_];
|
| NSString* informative_text =
|
| base::SysUTF16ToNSString(dialog_->message_text());
|
| -
|
| - // Truncate long JS alerts - crbug.com/331219
|
| - NSArray * info_array =
|
| - [informative_text componentsSeparatedByCharactersInSet:
|
| - [NSCharacterSet newlineCharacterSet]];
|
| - if ([info_array count] > kMessageTextMaxRows) {
|
| - info_array = [info_array subarrayWithRange:NSMakeRange(
|
| - 0, kMessageTextMaxRows)];
|
| - informative_text = [info_array componentsJoinedByString:@"\n"];
|
| - informative_text = [informative_text stringByAppendingString:@"\n..."];
|
| - }
|
| -
|
| [alert_ setInformativeText:informative_text];
|
| NSString* message_text =
|
| base::SysUTF16ToNSString(dialog_->title());
|
|
|