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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 238263004: Remove VIEW_TYPE_NOTIFICATION since it's not used anymore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/memory_details.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 // Ensure that we are only granting extension preferences to URLs with 2345 // Ensure that we are only granting extension preferences to URLs with
2346 // the correct scheme. Without this check, chrome-guest:// schemes used by 2346 // the correct scheme. Without this check, chrome-guest:// schemes used by
2347 // webview tags as well as hosts that happen to match the id of an 2347 // webview tags as well as hosts that happen to match the id of an
2348 // installed extension would get the wrong preferences. 2348 // installed extension would get the wrong preferences.
2349 if (site_url.SchemeIs(extensions::kExtensionScheme)) { 2349 if (site_url.SchemeIs(extensions::kExtensionScheme)) {
2350 extension_webkit_preferences::SetPreferences( 2350 extension_webkit_preferences::SetPreferences(
2351 extension, view_type, web_prefs); 2351 extension, view_type, web_prefs);
2352 } 2352 }
2353 } 2353 }
2354 2354
2355 if (view_type == extensions::VIEW_TYPE_NOTIFICATION) { 2355 if (view_type == extensions::VIEW_TYPE_BACKGROUND_CONTENTS) {
2356 web_prefs->allow_scripts_to_close_windows = true;
2357 } else if (view_type == extensions::VIEW_TYPE_BACKGROUND_CONTENTS) {
2358 // Disable all kinds of acceleration for background pages. 2356 // Disable all kinds of acceleration for background pages.
2359 // See http://crbug.com/96005 and http://crbug.com/96006 2357 // See http://crbug.com/96005 and http://crbug.com/96006
2360 web_prefs->force_compositing_mode = false; 2358 web_prefs->force_compositing_mode = false;
2361 web_prefs->accelerated_compositing_enabled = false; 2359 web_prefs->accelerated_compositing_enabled = false;
2362 } 2360 }
2363 2361
2364 #if defined(OS_CHROMEOS) 2362 #if defined(OS_CHROMEOS)
2365 // Override the default of suppressing HW compositing for WebUI pages for the 2363 // Override the default of suppressing HW compositing for WebUI pages for the
2366 // file manager, which is implemented using WebUI but wants HW acceleration 2364 // file manager, which is implemented using WebUI but wants HW acceleration
2367 // for video decode & render. 2365 // for video decode & render.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 switches::kDisableWebRtcEncryption, 2724 switches::kDisableWebRtcEncryption,
2727 }; 2725 };
2728 to_command_line->CopySwitchesFrom(from_command_line, 2726 to_command_line->CopySwitchesFrom(from_command_line,
2729 kWebRtcDevSwitchNames, 2727 kWebRtcDevSwitchNames,
2730 arraysize(kWebRtcDevSwitchNames)); 2728 arraysize(kWebRtcDevSwitchNames));
2731 } 2729 }
2732 } 2730 }
2733 #endif // defined(ENABLE_WEBRTC) 2731 #endif // defined(ENABLE_WEBRTC)
2734 2732
2735 } // namespace chrome 2733 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/memory_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698