Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / views / process_singleton_dialog_linux.cc
blob7afeba33f6ac443a5b2dcd9f0b83a3dfa8f62c44
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/process_singleton_dialog_linux.h"
7 #include "base/run_loop.h"
8 #include "chrome/browser/ui/simple_message_box.h"
9 #include "chrome/grit/chromium_strings.h"
10 #include "chrome/grit/generated_resources.h"
11 #include "ui/base/l10n/l10n_util.h"
13 bool ShowProcessSingletonDialog(const base::string16& message,
14 const base::string16& relaunch_text) {
15 bool result = chrome::ShowMessageBoxWithButtonText(
16 NULL,
17 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
18 message,
19 relaunch_text,
20 l10n_util::GetStringUTF16(IDS_PROFILE_IN_USE_LINUX_QUIT)) ==
21 chrome::MESSAGE_BOX_RESULT_YES;
23 // Avoids gpu_process_transport_factory.cc(153)] Check failed:
24 // per_compositor_data_.empty() when quit is chosen.
25 base::RunLoop().RunUntilIdle();
27 return result;