Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index 79813495c0a78c7b77b8f625aeebe2ce1de9b01b..446a75f0e2d660e6bb4c98c26634b1bb84073ced 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -126,6 +126,7 @@ |
#include "ui/accessibility/ax_view_state.h" |
#include "ui/base/accelerators/accelerator.h" |
#include "ui/base/hit_test.h" |
+#include "ui/base/ime/input_method.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/resource/material_design/material_design_controller.h" |
#include "ui/base/resource/resource_bundle.h" |
@@ -1706,6 +1707,8 @@ bool BrowserView::CanActivate() const { |
FROM_HERE, base::Bind(&BrowserView::ActivateAppModalDialog, |
activate_modal_dialog_factory_.GetWeakPtr())); |
#endif |
+ GetNativeWindow()->GetHost()->GetInputMethod()->GetLogCollector()->AddString( |
+ "BrowserView cannot be activated."); |
return false; |
} |