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

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

Issue 2286523002: Relocate reuseable portions of ash/display/display_util.* (Closed)
Patch Set: fixed ozone build Created 4 years, 4 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 667e4ae0790765596ef11e5c0dd4dab744f65ad9..c69704f54e42d2a673d2621d6d3d27f02b461ba9 100644
--- a/chrome/browser/chromeos/display/display_preferences.cc
+++ b/chrome/browser/chromeos/display/display_preferences.cc
@@ -8,7 +8,6 @@
#include "ash/display/display_manager.h"
#include "ash/display/display_pref_util.h"
-#include "ash/display/display_util.h"
#include "ash/display/json_converter.h"
#include "ash/shell.h"
#include "base/strings/string16.h"
@@ -26,6 +25,7 @@
#include "third_party/cros_system_api/dbus/service_constants.h"
#include "ui/display/display.h"
#include "ui/display/manager/display_layout_store.h"
+#include "ui/display/manager/display_manager_utilities.h"
#include "ui/gfx/geometry/insets.h"
#include "url/url_canon.h"
#include "url/url_util.h"
@@ -135,7 +135,7 @@ void LoadDisplayLayouts() {
ids.push_back(id);
}
display::DisplayIdList list =
- ash::GenerateDisplayIdList(ids.begin(), ids.end());
+ display::GenerateDisplayIdList(ids.begin(), ids.end());
layout_store->RegisterLayoutForDisplayIdList(list, std::move(layout));
}
}
@@ -214,7 +214,7 @@ void LoadDisplayRotationState() {
void StoreDisplayLayoutPref(const display::DisplayIdList& list,
const display::DisplayLayout& display_layout) {
- std::string name = ash::DisplayIdListToString(list);
+ std::string name = display::DisplayIdListToString(list);
PrefService* local_state = g_browser_process->local_state();
DictionaryPrefUpdate update(local_state, prefs::kSecondaryDisplays);
« no previous file with comments | « ash/test/display_manager_test_api.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