OLD | NEW |
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/options2/core_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/core_options_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 | 474 |
475 void CoreOptionsHandler::UpdatePepperFlashSettingsEnabled() { | 475 void CoreOptionsHandler::UpdatePepperFlashSettingsEnabled() { |
476 scoped_ptr<base::Value> enabled( | 476 scoped_ptr<base::Value> enabled( |
477 base::Value::CreateBooleanValue( | 477 base::Value::CreateBooleanValue( |
478 plugin_status_pref_setter_.IsPepperFlashSettingsEnabled())); | 478 plugin_status_pref_setter_.IsPepperFlashSettingsEnabled())); |
479 web_ui()->CallJavascriptFunction( | 479 web_ui()->CallJavascriptFunction( |
480 "OptionsPage.setPepperFlashSettingsEnabled", *enabled); | 480 "OptionsPage.setPepperFlashSettingsEnabled", *enabled); |
481 } | 481 } |
482 | 482 |
483 } // namespace options | 483 } // namespace options |
OLD | NEW |