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

Side by Side Diff: chrome/browser/ui/webui/options/content_settings_handler.cc

Issue 1458653002: New build flag system, convert Google Now flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 "chrome/browser/ui/webui/options/content_settings_handler.h" 5 #include "chrome/browser/ui/webui/options/content_settings_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // Cookies filter. 444 // Cookies filter.
445 {"cookiesTabLabel", IDS_COOKIES_TAB_LABEL}, 445 {"cookiesTabLabel", IDS_COOKIES_TAB_LABEL},
446 {"cookiesHeader", IDS_COOKIES_HEADER}, 446 {"cookiesHeader", IDS_COOKIES_HEADER},
447 {"cookiesAllow", IDS_COOKIES_ALLOW_RADIO}, 447 {"cookiesAllow", IDS_COOKIES_ALLOW_RADIO},
448 {"cookiesBlock", IDS_COOKIES_BLOCK_RADIO}, 448 {"cookiesBlock", IDS_COOKIES_BLOCK_RADIO},
449 {"cookiesSessionOnly", IDS_COOKIES_SESSION_ONLY_RADIO}, 449 {"cookiesSessionOnly", IDS_COOKIES_SESSION_ONLY_RADIO},
450 {"cookiesBlock3rdParty", IDS_COOKIES_BLOCK_3RDPARTY_CHKBOX}, 450 {"cookiesBlock3rdParty", IDS_COOKIES_BLOCK_3RDPARTY_CHKBOX},
451 {"cookiesShowCookies", IDS_COOKIES_SHOW_COOKIES_BUTTON}, 451 {"cookiesShowCookies", IDS_COOKIES_SHOW_COOKIES_BUTTON},
452 {"flashStorageSettings", IDS_FLASH_STORAGE_SETTINGS}, 452 {"flashStorageSettings", IDS_FLASH_STORAGE_SETTINGS},
453 {"flashStorageUrl", IDS_FLASH_STORAGE_URL}, 453 {"flashStorageUrl", IDS_FLASH_STORAGE_URL},
454 #if defined(ENABLE_GOOGLE_NOW) 454 #if BUILDFLAG(ENABLE_GOOGLE_NOW)
Mark Mentovai 2015/11/19 21:52:56 Here too.
455 {"googleGeolocationAccessEnable", 455 {"googleGeolocationAccessEnable",
456 IDS_GEOLOCATION_GOOGLE_ACCESS_ENABLE_CHKBOX}, 456 IDS_GEOLOCATION_GOOGLE_ACCESS_ENABLE_CHKBOX},
457 #endif 457 #endif
458 // Image filter. 458 // Image filter.
459 {"imagesTabLabel", IDS_IMAGES_TAB_LABEL}, 459 {"imagesTabLabel", IDS_IMAGES_TAB_LABEL},
460 {"imagesHeader", IDS_IMAGES_HEADER}, 460 {"imagesHeader", IDS_IMAGES_HEADER},
461 {"imagesAllow", IDS_IMAGES_LOAD_RADIO}, 461 {"imagesAllow", IDS_IMAGES_LOAD_RADIO},
462 {"imagesBlock", IDS_IMAGES_NOLOAD_RADIO}, 462 {"imagesBlock", IDS_IMAGES_NOLOAD_RADIO},
463 // JavaScript filter. 463 // JavaScript filter.
464 {"javascriptTabLabel", IDS_JAVASCRIPT_TAB_LABEL}, 464 {"javascriptTabLabel", IDS_JAVASCRIPT_TAB_LABEL},
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 1679
1680 // Exceptions apply only when the feature is enabled. 1680 // Exceptions apply only when the feature is enabled.
1681 PrefService* prefs = user_prefs::UserPrefs::Get(GetBrowserContext(web_ui())); 1681 PrefService* prefs = user_prefs::UserPrefs::Get(GetBrowserContext(web_ui()));
1682 bool enable_exceptions = prefs->GetBoolean(prefs::kEnableDRM); 1682 bool enable_exceptions = prefs->GetBoolean(prefs::kEnableDRM);
1683 web_ui()->CallJavascriptFunction( 1683 web_ui()->CallJavascriptFunction(
1684 "ContentSettings.enableProtectedContentExceptions", 1684 "ContentSettings.enableProtectedContentExceptions",
1685 base::FundamentalValue(enable_exceptions)); 1685 base::FundamentalValue(enable_exceptions));
1686 } 1686 }
1687 1687
1688 } // namespace options 1688 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698