Commit df04a6fe authored by Jing Wang's avatar Jing Wang Committed by Commit Bot

Change the error format with function name, now put function at front. Also...

Change the error format with function name, now put function at front. Also avoid multiple-line error message.

Bug: 1024606
Change-Id: I23f4db9cdec469eede696a1a5c730b072d6f786f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1971042
Commit-Queue: Jing Wang <jiwan@chromium.org>
Reviewed-by: default avatarShu Chen <shuchen@chromium.org>
Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727276}
parent 6cac7d07
...@@ -463,7 +463,7 @@ InputImeEventRouter* GetInputImeEventRouter(Profile* profile) { ...@@ -463,7 +463,7 @@ InputImeEventRouter* GetInputImeEventRouter(Profile* profile) {
std::string InformativeError(const std::string& error, std::string InformativeError(const std::string& error,
const char* function_name) { const char* function_name) {
return base::StringPrintf("%s\nThrown by %s", error.c_str(), function_name); return base::StringPrintf("[%s]: %s", function_name, error.c_str());
} }
} // namespace extensions } // namespace extensions
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
var failToSendKeyEvents = `Could not send key events. ENTER et al. keys are allowed only on http:, https: etc. var failToSendKeyEvents = "[input.ime.sendKeyEvents]: Could not send key events. ENTER et al. keys are allowed only on http:, https: etc.";
Thrown by input.ime.sendKeyEvents`;
chrome.test.runTests([ chrome.test.runTests([
// Tests input.ime.activate and input.ime.onFocus APIs. // Tests input.ime.activate and input.ime.onFocus APIs.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment