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

Unified Diff: ash/display/display_color_manager_chromeos.cc

Issue 1428963002: ash: Remove --internal-display-color-profile-file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/chromeos_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_color_manager_chromeos.cc
diff --git a/ash/display/display_color_manager_chromeos.cc b/ash/display/display_color_manager_chromeos.cc
index 060ee622a743e0f4b275689c2f0e2ec04d09a6f5..1ee0a5164578ae069eb90ee148017b06237d6067 100644
--- a/ash/display/display_color_manager_chromeos.cc
+++ b/ash/display/display_color_manager_chromeos.cc
@@ -18,7 +18,6 @@
#include "base/task_runner_util.h"
#include "base/threading/sequenced_worker_pool.h"
#include "chromeos/chromeos_paths.h"
-#include "chromeos/chromeos_switches.h"
#include "third_party/qcms/src/qcms.h"
#include "ui/display/types/display_snapshot.h"
#include "ui/display/types/gamma_ramp_rgb_entry.h"
@@ -67,17 +66,6 @@ bool ParseFile(const base::FilePath& path,
}
base::FilePath PathForDisplaySnapshot(const ui::DisplaySnapshot* snapshot) {
- if (gfx::Display::IsInternalDisplayId(snapshot->display_id())) {
- const base::CommandLine* command_line =
- base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(
- chromeos::switches::kInternalDisplayColorProfileFile)) {
- const base::FilePath& path = command_line->GetSwitchValuePath(
- chromeos::switches::kInternalDisplayColorProfileFile);
- return base::FilePath(path);
- }
- }
-
base::FilePath path;
CHECK(
PathService::Get(chromeos::DIR_DEVICE_COLOR_CALIBRATION_PROFILES, &path));
« no previous file with comments | « no previous file | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698