| Index: chrome/browser/plugin_carbon_interpose_mac.cc
|
| diff --git a/chrome/browser/plugin_carbon_interpose_mac.cc b/chrome/browser/plugin_carbon_interpose_mac.cc
|
| index 1957f47c10901dc844a4f34c5f3fe54c7b1bc16b..e0e17b0f90a1258c3a535f58d0d6006b16e0862c 100644
|
| --- a/chrome/browser/plugin_carbon_interpose_mac.cc
|
| +++ b/chrome/browser/plugin_carbon_interpose_mac.cc
|
| @@ -138,6 +138,15 @@ static void ChromePluginHideWindow(WindowRef window) {
|
| MaybeReactivateSavedProcess();
|
| }
|
|
|
| +static void ChromePluginDisposeDialog(DialogRef dialog) {
|
| + WindowRef window = GetDialogWindow(dialog);
|
| + CGWindowID window_id = HIWindowGetCGWindowID(window);
|
| + CGRect window_rect = CGRectForWindow(window);
|
| + DisposeDialog(dialog);
|
| + webkit_glue::NotifyBrowserOfPluginDisposeWindow(window_id, window_rect);
|
| + MaybeReactivateSavedProcess();
|
| +}
|
| +
|
| #pragma mark -
|
|
|
| struct interpose_substitution {
|
| @@ -156,4 +165,5 @@ __attribute__((used)) static const interpose_substitution substitutions[]
|
| INTERPOSE_FUNCTION(ShowWindow),
|
| INTERPOSE_FUNCTION(DisposeWindow),
|
| INTERPOSE_FUNCTION(HideWindow),
|
| + INTERPOSE_FUNCTION(DisposeDialog),
|
| };
|
|
|