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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2216073002: Color: Add ColorCorrectRendering flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decoder_profile
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
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 "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors(); 530 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors();
531 531
532 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport); 532 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport);
533 533
534 if (delegate_ && delegate_->IsOverridingUserAgent()) 534 if (delegate_ && delegate_->IsOverridingUserAgent())
535 prefs.viewport_meta_enabled = false; 535 prefs.viewport_meta_enabled = false;
536 536
537 prefs.main_frame_resizes_are_orientation_changes = 537 prefs.main_frame_resizes_are_orientation_changes =
538 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); 538 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges);
539 539
540 prefs.image_color_profiles_enabled = 540 prefs.color_correct_rendering_enabled =
541 command_line.HasSwitch(switches::kEnableImageColorProfiles); 541 command_line.HasSwitch(switches::kEnableColorCorrectRendering);
542 542
543 prefs.spatial_navigation_enabled = command_line.HasSwitch( 543 prefs.spatial_navigation_enabled = command_line.HasSwitch(
544 switches::kEnableSpatialNavigation); 544 switches::kEnableSpatialNavigation);
545 545
546 prefs.disable_reading_from_canvas = command_line.HasSwitch( 546 prefs.disable_reading_from_canvas = command_line.HasSwitch(
547 switches::kDisableReadingFromCanvas); 547 switches::kDisableReadingFromCanvas);
548 548
549 prefs.strict_mixed_content_checking = command_line.HasSwitch( 549 prefs.strict_mixed_content_checking = command_line.HasSwitch(
550 switches::kEnableStrictMixedContentChecking); 550 switches::kEnableStrictMixedContentChecking);
551 551
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 // Note: We are using the origin URL provided by the sender here. It may be 1321 // Note: We are using the origin URL provided by the sender here. It may be
1322 // different from the receiver's. 1322 // different from the receiver's.
1323 file_system_file.url = 1323 file_system_file.url =
1324 GURL(storage::GetIsolatedFileSystemRootURIString( 1324 GURL(storage::GetIsolatedFileSystemRootURIString(
1325 file_system_url.origin(), filesystem_id, std::string()) 1325 file_system_url.origin(), filesystem_id, std::string())
1326 .append(register_name)); 1326 .append(register_name));
1327 } 1327 }
1328 } 1328 }
1329 1329
1330 } // namespace content 1330 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698