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

Side by Side Diff: chrome/browser/ui/startup/bad_flags_prompt.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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/startup/bad_flags_prompt.h" 5 #include "chrome/browser/ui/startup/bad_flags_prompt.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/infobars/infobar_service.h" 10 #include "chrome/browser/infobars/infobar_service.h"
11 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h" 11 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/simple_message_box.h" 13 #include "chrome/browser/ui/simple_message_box.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 14 #include "chrome/browser/ui/tabs/tab_strip_model.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/switch_utils.h" 17 #include "chrome/common/switch_utils.h"
18 #include "chrome/grit/chromium_strings.h"
19 #include "chrome/grit/generated_resources.h"
18 #include "components/invalidation/invalidation_switches.h" 20 #include "components/invalidation/invalidation_switches.h"
19 #include "components/nacl/common/nacl_switches.h" 21 #include "components/nacl/common/nacl_switches.h"
20 #include "components/startup_metric_utils/startup_metric_utils.h" 22 #include "components/startup_metric_utils/startup_metric_utils.h"
21 #include "components/translate/core/common/translate_switches.h" 23 #include "components/translate/core/common/translate_switches.h"
22 #include "content/public/common/content_switches.h" 24 #include "content/public/common/content_switches.h"
23 #include "extensions/common/switches.h" 25 #include "extensions/common/switches.h"
24 #include "google_apis/gaia/gaia_switches.h" 26 #include "google_apis/gaia/gaia_switches.h"
25 #include "grit/chromium_strings.h"
26 #include "grit/generated_resources.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 #include "ui/base/resource/resource_bundle.h" 28 #include "ui/base/resource/resource_bundle.h"
29 29
30 namespace chrome { 30 namespace chrome {
31 31
32 void ShowBadFlagsPrompt(Browser* browser) { 32 void ShowBadFlagsPrompt(Browser* browser) {
33 content::WebContents* web_contents = 33 content::WebContents* web_contents =
34 browser->tab_strip_model()->GetActiveWebContents(); 34 browser->tab_strip_model()->GetActiveWebContents();
35 if (!web_contents) 35 if (!web_contents)
36 return; 36 return;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 user_data_dir.LossyDisplayName()); 117 user_data_dir.LossyDisplayName());
118 118
119 if (cleanup_resource_bundle) 119 if (cleanup_resource_bundle)
120 ResourceBundle::CleanupSharedInstance(); 120 ResourceBundle::CleanupSharedInstance();
121 121
122 // More complex dialogs cannot be shown before the earliest calls here. 122 // More complex dialogs cannot be shown before the earliest calls here.
123 ShowMessageBox(NULL, title, message, chrome::MESSAGE_BOX_TYPE_WARNING); 123 ShowMessageBox(NULL, title, message, chrome::MESSAGE_BOX_TYPE_WARNING);
124 } 124 }
125 125
126 } // namespace chrome 126 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/autolaunch_prompt_win.cc ('k') | chrome/browser/ui/startup/default_browser_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698