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

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

Issue 11821053: Revert 176087 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:mergeinfo
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/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "third_party/skia/include/core/SkBitmap.h" 78 #include "third_party/skia/include/core/SkBitmap.h"
79 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 79 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
80 #include "ui/base/l10n/l10n_util.h" 80 #include "ui/base/l10n/l10n_util.h"
81 81
82 #if !defined(OS_CHROMEOS) 82 #if !defined(OS_CHROMEOS)
83 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" 83 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h"
84 #include "chrome/browser/ui/webui/options/advanced_options_utils.h" 84 #include "chrome/browser/ui/webui/options/advanced_options_utils.h"
85 #endif 85 #endif
86 86
87 #if defined(OS_CHROMEOS) 87 #if defined(OS_CHROMEOS)
88 #include "ash/magnifier/magnifier_constants.h"
89 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 88 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
90 #include "chrome/browser/chromeos/extensions/wallpaper_manager_util.h" 89 #include "chrome/browser/chromeos/extensions/wallpaper_manager_util.h"
91 #include "chrome/browser/chromeos/login/user_manager.h" 90 #include "chrome/browser/chromeos/login/user_manager.h"
92 #include "chrome/browser/chromeos/settings/cros_settings.h" 91 #include "chrome/browser/chromeos/settings/cros_settings.h"
93 #include "chrome/browser/policy/browser_policy_connector.h" 92 #include "chrome/browser/policy/browser_policy_connector.h"
94 #include "chrome/browser/ui/browser_window.h" 93 #include "chrome/browser/ui/browser_window.h"
95 #include "chrome/browser/ui/webui/options/chromeos/timezone_options_util.h" 94 #include "chrome/browser/ui/webui/options/chromeos/timezone_options_util.h"
96 #include "chromeos/dbus/dbus_thread_manager.h" 95 #include "chromeos/dbus/dbus_thread_manager.h"
97 #include "chromeos/dbus/power_manager_client.h" 96 #include "chromeos/dbus/power_manager_client.h"
98 #include "ui/gfx/image/image_skia.h" 97 #include "ui/gfx/image/image_skia.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 416
418 #if defined(OS_CHROMEOS) 417 #if defined(OS_CHROMEOS)
419 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL); 418 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL);
420 419
421 // TODO(pastarmovj): replace this with a call to the CrosSettings list 420 // TODO(pastarmovj): replace this with a call to the CrosSettings list
422 // handling functionality to come. 421 // handling functionality to come.
423 values->Set("timezoneList", GetTimezoneList().release()); 422 values->Set("timezoneList", GetTimezoneList().release());
424 423
425 values->SetString("accessibilityLearnMoreURL", 424 values->SetString("accessibilityLearnMoreURL",
426 chrome::kChromeAccessibilityHelpURL); 425 chrome::kChromeAccessibilityHelpURL);
427
428 // Creates magnifierList.
429 base::ListValue* magnifierList = new base::ListValue();
430 base::ListValue* option_full = new base::ListValue();
431 option_full->Append(base::Value::CreateIntegerValue(ash::MAGNIFIER_FULL));
432 option_full->Append(new base::StringValue(l10n_util::GetStringUTF16(
433 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL)));
434 base::ListValue* option_partial = new base::ListValue();
435 option_partial->Append(base::Value::CreateIntegerValue(
436 ash::MAGNIFIER_PARTIAL));
437 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16(
438 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL)));
439 magnifierList->Append(option_full);
440 magnifierList->Append(option_partial);
441 values->Set("magnifierList", magnifierList);
442
443 #endif 426 #endif
444 #if defined(OS_MACOSX) 427 #if defined(OS_MACOSX)
445 values->SetString("macPasswordsWarning", 428 values->SetString("macPasswordsWarning",
446 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); 429 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING));
447 values->SetBoolean("multiple_profiles", 430 values->SetBoolean("multiple_profiles",
448 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); 431 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1);
449 #endif 432 #endif
450 433
451 if (multiprofile_) 434 if (multiprofile_)
452 values->Set("profilesInfo", GetProfilesInfoList().release()); 435 values->Set("profilesInfo", GetProfilesInfoList().release());
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); 1392 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
1410 } 1393 }
1411 StringValue label(label_str); 1394 StringValue label(label_str);
1412 1395
1413 web_ui()->CallJavascriptFunction( 1396 web_ui()->CallJavascriptFunction(
1414 "BrowserOptions.setupProxySettingsSection", disabled, label); 1397 "BrowserOptions.setupProxySettingsSection", disabled, label);
1415 #endif // !defined(OS_CHROMEOS) 1398 #endif // !defined(OS_CHROMEOS)
1416 } 1399 }
1417 1400
1418 } // namespace options 1401 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698