| OLD | NEW |
| 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/flags_ui.h" | 5 #include "chrome/browser/ui/webui/flags_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "grit/browser_resources.h" | 26 #include "grit/browser_resources.h" |
| 27 #include "grit/chromium_strings.h" | 27 #include "grit/chromium_strings.h" |
| 28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| 29 #include "grit/theme_resources.h" | 29 #include "grit/theme_resources.h" |
| 30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
| 31 #include "ui/base/layout.h" | 31 #include "ui/base/layout.h" |
| 32 #include "ui/base/resource/resource_bundle.h" | 32 #include "ui/base/resource/resource_bundle.h" |
| 33 | 33 |
| 34 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
| 35 #include "base/chromeos/chromeos_version.h" | 35 #include "base/chromeos/chromeos_version.h" |
| 36 #include "chrome/browser/chromeos/cros_settings.h" | |
| 37 #include "chrome/browser/chromeos/login/user_manager.h" | 36 #include "chrome/browser/chromeos/login/user_manager.h" |
| 37 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 using content::WebContents; | 40 using content::WebContents; |
| 41 using content::WebUIMessageHandler; | 41 using content::WebUIMessageHandler; |
| 42 | 42 |
| 43 namespace { | 43 namespace { |
| 44 | 44 |
| 45 ChromeWebUIDataSource* CreateFlagsUIHTMLSource() { | 45 ChromeWebUIDataSource* CreateFlagsUIHTMLSource() { |
| 46 ChromeWebUIDataSource* source = | 46 ChromeWebUIDataSource* source = |
| 47 new ChromeWebUIDataSource(chrome::kChromeUIFlagsHost); | 47 new ChromeWebUIDataSource(chrome::kChromeUIFlagsHost); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // static | 169 // static |
| 170 base::RefCountedMemory* FlagsUI::GetFaviconResourceBytes() { | 170 base::RefCountedMemory* FlagsUI::GetFaviconResourceBytes() { |
| 171 return ResourceBundle::GetSharedInstance(). | 171 return ResourceBundle::GetSharedInstance(). |
| 172 LoadDataResourceBytes(IDR_FLAGS, ui::SCALE_FACTOR_100P); | 172 LoadDataResourceBytes(IDR_FLAGS, ui::SCALE_FACTOR_100P); |
| 173 } | 173 } |
| 174 | 174 |
| 175 // static | 175 // static |
| 176 void FlagsUI::RegisterPrefs(PrefService* prefs) { | 176 void FlagsUI::RegisterPrefs(PrefService* prefs) { |
| 177 prefs->RegisterListPref(prefs::kEnabledLabsExperiments); | 177 prefs->RegisterListPref(prefs::kEnabledLabsExperiments); |
| 178 } | 178 } |
| OLD | NEW |