Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: chrome/browser/ui/profile_error_dialog.cc

Issue 468233004: Cleanup: Another round of removing unneeded grit #includes in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac, undo ui_localizer.mm Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/profile_error_dialog.h" 5 #include "chrome/browser/ui/profile_error_dialog.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/ui/simple_message_box.h" 8 #include "chrome/browser/ui/simple_message_box.h"
9 #include "grit/chromium_strings.h" 9 #include "grit/chromium_strings.h"
10 #include "grit/generated_resources.h"
11 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
12 11
13 void ShowProfileErrorDialog(ProfileErrorType type, int message_id) { 12 void ShowProfileErrorDialog(ProfileErrorType type, int message_id) {
14 #if defined(OS_ANDROID) || defined(OS_IOS) 13 #if defined(OS_ANDROID) || defined(OS_IOS)
15 NOTIMPLEMENTED(); 14 NOTIMPLEMENTED();
16 #else 15 #else
17 UMA_HISTOGRAM_ENUMERATION("Profile.ProfileError", type, PROFILE_ERROR_END); 16 UMA_HISTOGRAM_ENUMERATION("Profile.ProfileError", type, PROFILE_ERROR_END);
18 chrome::ShowMessageBox(NULL, 17 chrome::ShowMessageBox(NULL,
19 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME), 18 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
20 l10n_util::GetStringUTF16(message_id), 19 l10n_util::GetStringUTF16(message_id),
21 chrome::MESSAGE_BOX_TYPE_WARNING); 20 chrome::MESSAGE_BOX_TYPE_WARNING);
22 #endif 21 #endif
23 } 22 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/hung_plugin_tab_helper.cc ('k') | chrome/browser/ui/search/instant_extended_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698