Commit 7279e07b authored by Charles Harrison's avatar Charles Harrison Committed by Commit Bot

Print IDS_USED_EXISTING_BROWSER on all platforms

This string was landed as linux-only here:
https://codereview.chromium.org/155740

It was changed be !OS_MACOSX when OS_LINUX was changed to OS_POSIX.

Bug: 566496
Change-Id: I5615ae7e304c51d7f4f8dd37df36a3c4d2e7cfeb
Reviewed-on: https://chromium-review.googlesource.com/764607Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Reviewed-by: default avatarMatt Mueller <mattm@chromium.org>
Commit-Queue: Charlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515857}
parent 6a2642c5
...@@ -8039,7 +8039,7 @@ Please help our engineers fix this problem. Tell us what happened right before y ...@@ -8039,7 +8039,7 @@ Please help our engineers fix this problem. Tell us what happened right before y
</message> </message>
</if> </if>
<message name="IDS_USED_EXISTING_BROWSER" desc="Linux-specific message printed to console when the app is ran a second time, causing a new window to show rather than starting up a new browser."> <message name="IDS_USED_EXISTING_BROWSER" desc="Message printed to console when the app is ran a second time, causing a new window to show rather than starting up a new browser.">
Created new window in existing browser session. Created new window in existing browser session.
</message> </message>
......
...@@ -1460,11 +1460,10 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { ...@@ -1460,11 +1460,10 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
break; break;
case ProcessSingleton::PROCESS_NOTIFIED: case ProcessSingleton::PROCESS_NOTIFIED:
#if defined(OS_POSIX) && !defined(OS_MACOSX) printf("%s\n", base::SysWideToNativeMB(
// On POSIX systems, print a message notifying the process is running. base::UTF16ToWide(l10n_util::GetStringUTF16(
printf("%s\n", base::SysWideToNativeMB(base::UTF16ToWide( IDS_USED_EXISTING_BROWSER)))
l10n_util::GetStringUTF16(IDS_USED_EXISTING_BROWSER))).c_str()); .c_str());
#endif // defined(OS_POSIX) && !defined(OS_MACOSX)
// Having a differentiated return type for testing allows for tests to // Having a differentiated return type for testing allows for tests to
// verify proper handling of some switches. When not testing, stick to // verify proper handling of some switches. When not testing, stick to
......
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