- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / profile_error_dialog.cc
1 // Copyright (c) 2012 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.
4
5 #include "chrome/browser/ui/profile_error_dialog.h"
6
7 #include "chrome/browser/ui/simple_message_box.h"
8 #include "grit/chromium_strings.h"
9 #include "grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h"
11
12 void ShowProfileErrorDialog(int message_id) {
13 #if defined(OS_ANDROID) || defined(OS_IOS)
14   NOTIMPLEMENTED();
15 #else
16   chrome::ShowMessageBox(NULL,
17                          l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
18                          l10n_util::GetStringUTF16(message_id),
19                          chrome::MESSAGE_BOX_TYPE_WARNING);
20 #endif
21 }