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

Unified Diff: chrome/browser/chromeos/display/display_preferences.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/display/display_preferences.cc
diff --git a/chrome/browser/chromeos/display/display_preferences.cc b/chrome/browser/chromeos/display/display_preferences.cc
index 70843f03d2dda428d551b961e8eb5039b3fd2f18..30eac29cb58827c12de4d156c57f7b509d35116a 100644
--- a/chrome/browser/chromeos/display/display_preferences.cc
+++ b/chrome/browser/chromeos/display/display_preferences.cc
@@ -92,7 +92,7 @@ ui::ColorCalibrationProfile StringToColorProfile(std::string value) {
return ui::COLOR_PROFILE_STANDARD;
}
-ash::internal::DisplayManager* GetDisplayManager() {
+ash::DisplayManager* GetDisplayManager() {
return ash::Shell::GetInstance()->display_manager();
}
@@ -108,8 +108,7 @@ bool UserCanSaveDisplayPreference() {
void LoadDisplayLayouts() {
PrefService* local_state = g_browser_process->local_state();
- ash::internal::DisplayLayoutStore* layout_store =
- GetDisplayManager()->layout_store();
+ ash::DisplayLayoutStore* layout_store = GetDisplayManager()->layout_store();
const base::DictionaryValue* layouts = local_state->GetDictionary(
prefs::kSecondaryDisplays);
@@ -216,7 +215,7 @@ void StoreCurrentDisplayLayoutPrefs() {
}
void StoreCurrentDisplayProperties() {
- ash::internal::DisplayManager* display_manager = GetDisplayManager();
+ ash::DisplayManager* display_manager = GetDisplayManager();
PrefService* local_state = g_browser_process->local_state();
DictionaryPrefUpdate update(local_state, prefs::kDisplayProperties);
@@ -226,7 +225,7 @@ void StoreCurrentDisplayProperties() {
for (size_t i = 0; i < num; ++i) {
const gfx::Display& display = display_manager->GetDisplayAt(i);
int64 id = display.id();
- ash::internal::DisplayInfo info = display_manager->GetDisplayInfo(id);
+ ash::DisplayInfo info = display_manager->GetDisplayInfo(id);
scoped_ptr<base::DictionaryValue> property_value(
new base::DictionaryValue());
@@ -234,7 +233,7 @@ void StoreCurrentDisplayProperties() {
property_value->SetInteger(
"ui-scale",
static_cast<int>(info.configured_ui_scale() * 1000));
- ash::internal::DisplayMode mode;
+ ash::DisplayMode mode;
if (!display.IsInternal() &&
display_manager->GetSelectedModeForDisplayId(id, &mode) &&
!mode.native) {
« no previous file with comments | « ash/wm/workspace_controller_unittest.cc ('k') | chrome/browser/chromeos/display/display_preferences_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698