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

Side by Side Diff: chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc

Issue 2290753004: Finish changing chrome/ grit includes to use qualified paths. (Closed)
Patch Set: Rebase, fix new unqualified include Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/webui/translate_internals/translate_internals_ui.h" 5 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/webui/translate_internals/translate_internals_handle r.h" 15 #include "chrome/browser/ui/webui/translate_internals/translate_internals_handle r.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
18 #include "chrome/grit/translate_internals_resources.h"
18 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
19 #include "content/public/browser/web_ui.h" 20 #include "content/public/browser/web_ui.h"
20 #include "content/public/browser/web_ui_data_source.h" 21 #include "content/public/browser/web_ui_data_source.h"
21 #include "grit/translate_internals_resources.h"
22 #include "third_party/cld/cld_version.h" 22 #include "third_party/cld/cld_version.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
24 24
25 namespace { 25 namespace {
26 26
27 // Sets the languages to |dict|. Each key is a language code and each value is 27 // Sets the languages to |dict|. Each key is a language code and each value is
28 // a language name in the locale. 28 // a language name in the locale.
29 void GetLanguages(base::DictionaryValue* dict) { 29 void GetLanguages(base::DictionaryValue* dict) {
30 DCHECK(dict); 30 DCHECK(dict);
31 31
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 } // namespace 79 } // namespace
80 80
81 TranslateInternalsUI::TranslateInternalsUI(content::WebUI* web_ui) 81 TranslateInternalsUI::TranslateInternalsUI(content::WebUI* web_ui)
82 : WebUIController(web_ui) { 82 : WebUIController(web_ui) {
83 web_ui->AddMessageHandler(new TranslateInternalsHandler); 83 web_ui->AddMessageHandler(new TranslateInternalsHandler);
84 84
85 Profile* profile = Profile::FromWebUI(web_ui); 85 Profile* profile = Profile::FromWebUI(web_ui);
86 content::WebUIDataSource::Add(profile, CreateTranslateInternalsHTMLSource()); 86 content::WebUIDataSource::Add(profile, CreateTranslateInternalsHTMLSource());
87 } 87 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_ui.cc ('k') | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698