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

Side by Side Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 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/webui/chromeos/imageburner/imageburner_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 13 matching lines...) Expand all
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 namespace chromeos { 26 namespace chromeos {
27 namespace imageburner { 27 namespace imageburner {
28 28
29 namespace { 29 namespace {
30 30
31 const char kPropertyDevicePath[] = "devicePath"; 31 const char kPropertyDevicePath[] = "devicePath";
32 const char kPropertyFilePath[] = "filePath"; 32 const char kPropertyFilePath[] = "filePath";
33 const char kPropertyLabel[] = "label"; 33 const char kPropertyLabel[] = "label";
34 const char kPropertyPath[] = "path";
35 const char kPropertyDeviceType[] = "type"; 34 const char kPropertyDeviceType[] = "type";
36 35
37 // Link displayed on imageburner ui. 36 // Link displayed on imageburner ui.
38 const char kMoreInfoLink[] = 37 const char kMoreInfoLink[] =
39 "http://www.chromium.org/chromium-os/chromiumos-design-docs/recovery-mode"; 38 "http://www.chromium.org/chromium-os/chromiumos-design-docs/recovery-mode";
40 39
41 content::WebUIDataSource* CreateImageburnerUIHTMLSource() { 40 content::WebUIDataSource* CreateImageburnerUIHTMLSource() {
42 content::WebUIDataSource* source = 41 content::WebUIDataSource* source =
43 content::WebUIDataSource::Create(chrome::kChromeUIImageBurnerHost); 42 content::WebUIDataSource::Create(chrome::kChromeUIImageBurnerHost);
44 43
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 321
323 ImageBurnUI::ImageBurnUI(content::WebUI* web_ui) : WebUIController(web_ui) { 322 ImageBurnUI::ImageBurnUI(content::WebUI* web_ui) : WebUIController(web_ui) {
324 chromeos::imageburner::WebUIHandler* handler = 323 chromeos::imageburner::WebUIHandler* handler =
325 new chromeos::imageburner::WebUIHandler(web_ui->GetWebContents()); 324 new chromeos::imageburner::WebUIHandler(web_ui->GetWebContents());
326 web_ui->AddMessageHandler(handler); 325 web_ui->AddMessageHandler(handler);
327 326
328 Profile* profile = Profile::FromWebUI(web_ui); 327 Profile* profile = Profile::FromWebUI(web_ui);
329 content::WebUIDataSource::Add( 328 content::WebUIDataSource::Add(
330 profile, chromeos::imageburner::CreateImageburnerUIHTMLSource()); 329 profile, chromeos::imageburner::CreateImageburnerUIHTMLSource());
331 } 330 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.cc ('k') | chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698