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

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

Issue 93603006: Move Translate-related files to components/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 years, 11 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
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/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/infobars/infobar_service.h" 9 #include "chrome/browser/infobars/infobar_service.h"
10 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h" 10 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" 12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "components/translate/common/translate_switches.h" 14 #include "components/translate/core/common/translate_switches.h"
15 #include "extensions/common/switches.h" 15 #include "extensions/common/switches.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 18
19 namespace chrome { 19 namespace chrome {
20 20
21 void ShowBadFlagsPrompt(Browser* browser) { 21 void ShowBadFlagsPrompt(Browser* browser) {
22 content::WebContents* web_contents = 22 content::WebContents* web_contents =
23 browser->tab_strip_model()->GetActiveWebContents(); 23 browser->tab_strip_model()->GetActiveWebContents();
24 if (!web_contents) 24 if (!web_contents)
(...skipping 28 matching lines...) Expand all
53 l10n_util::GetStringFUTF16(IDS_BAD_FLAGS_WARNING_MESSAGE, 53 l10n_util::GetStringFUTF16(IDS_BAD_FLAGS_WARNING_MESSAGE,
54 base::UTF8ToUTF16( 54 base::UTF8ToUTF16(
55 std::string("--") + *flag)), 55 std::string("--") + *flag)),
56 false); 56 false);
57 return; 57 return;
58 } 58 }
59 } 59 }
60 } 60 }
61 61
62 } // namespace chrome 62 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/translate_infobar_base.h ('k') | chrome/browser/ui/translate/translate_bubble_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698