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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h" 6 #include "chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h"
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/task.h" 12 #include "base/task.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/chromeos/system/statistics_provider.h" 15 #include "chrome/browser/chromeos/system/statistics_provider.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 17 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
18 #include "chrome/common/jstemplate_builder.h" 18 #include "chrome/common/jstemplate_builder.h"
19 #include "chrome/common/time_format.h" 19 #include "chrome/common/time_format.h"
20 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
21 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 #include "grit/browser_resources.h" 22 #include "grit/browser_resources.h"
23 #include "grit/generated_resources.h" 23 #include "grit/generated_resources.h"
24 #include "grit/locale_settings.h" 24 #include "grit/locale_settings.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/base/resource/resource_bundle.h" 26 #include "ui/base/resource/resource_bundle.h"
27 #include "ui/base/text/bytes_formatting.h" 27 #include "ui/base/text/bytes_formatting.h"
28 28
29 using content::BrowserThread;
30
29 namespace { 31 namespace {
30 32
31 const char kPropertyDevicePath[] = "devicePath"; 33 const char kPropertyDevicePath[] = "devicePath";
32 const char kPropertyFilePath[] = "filePath"; 34 const char kPropertyFilePath[] = "filePath";
33 const char kPropertyLabel[] = "label"; 35 const char kPropertyLabel[] = "label";
34 const char kPropertyPath[] = "path"; 36 const char kPropertyPath[] = "path";
35 37
36 // Name for hwid in machine statistics. 38 // Name for hwid in machine statistics.
37 const std::string kHwidStatistic = "hardware_class"; 39 const std::string kHwidStatistic = "hardware_class";
38 40
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 //////////////////////////////////////////////////////////////////////////////// 632 ////////////////////////////////////////////////////////////////////////////////
631 633
632 ImageBurnUI::ImageBurnUI(TabContents* contents) : ChromeWebUI(contents) { 634 ImageBurnUI::ImageBurnUI(TabContents* contents) : ChromeWebUI(contents) {
633 imageburner::WebUIHandler* handler = new imageburner::WebUIHandler(contents); 635 imageburner::WebUIHandler* handler = new imageburner::WebUIHandler(contents);
634 AddMessageHandler((handler)->Attach(this)); 636 AddMessageHandler((handler)->Attach(this));
635 637
636 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 638 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
637 profile->GetChromeURLDataManager()->AddDataSource( 639 profile->GetChromeURLDataManager()->AddDataSource(
638 CreateImageburnerUIHTMLSource()); 640 CreateImageburnerUIHTMLSource());
639 } 641 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698