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

Side by Side Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc

Issue 271623003: Added localized string for "Manage" button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mon 05/12/2014 23:34:15.86 Created 6 years, 7 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/resources/local_discovery/local_discovery.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/local_discovery/local_discovery_ui.h" 5 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" 8 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h"
9 #include "chrome/browser/ui/webui/metrics_handler.h" 9 #include "chrome/browser/ui/webui/metrics_handler.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 11 matching lines...) Expand all
22 22
23 source->SetDefaultResource(IDR_LOCAL_DISCOVERY_HTML); 23 source->SetDefaultResource(IDR_LOCAL_DISCOVERY_HTML);
24 source->AddResourcePath("local_discovery.css", IDR_LOCAL_DISCOVERY_CSS); 24 source->AddResourcePath("local_discovery.css", IDR_LOCAL_DISCOVERY_CSS);
25 source->AddResourcePath("local_discovery.js", IDR_LOCAL_DISCOVERY_JS); 25 source->AddResourcePath("local_discovery.js", IDR_LOCAL_DISCOVERY_JS);
26 source->AddResourcePath("device.png", IDR_LOCAL_DISCOVERY_DEVICE_PNG); 26 source->AddResourcePath("device.png", IDR_LOCAL_DISCOVERY_DEVICE_PNG);
27 source->AddResourcePath("printer.png", IDR_LOCAL_DISCOVERY_PRINTER_PNG); 27 source->AddResourcePath("printer.png", IDR_LOCAL_DISCOVERY_PRINTER_PNG);
28 28
29 source->SetUseJsonJSFormatV2(); 29 source->SetUseJsonJSFormatV2();
30 source->AddLocalizedString("serviceRegister", 30 source->AddLocalizedString("serviceRegister",
31 IDS_LOCAL_DISCOVERY_SERVICE_REGISTER); 31 IDS_LOCAL_DISCOVERY_SERVICE_REGISTER);
32 source->AddLocalizedString("manageDevice", IDS_LOCAL_DISCOVERY_MANAGE_DEVICE);
32 33
33 source->AddLocalizedString("registerConfirmMessage", 34 source->AddLocalizedString("registerConfirmMessage",
34 IDS_LOCAL_DISCOVERY_REGISTER_CONFIRMATION); 35 IDS_LOCAL_DISCOVERY_REGISTER_CONFIRMATION);
35 source->AddLocalizedString("registerUser", 36 source->AddLocalizedString("registerUser",
36 IDS_LOCAL_DISCOVERY_REGISTER_USER); 37 IDS_LOCAL_DISCOVERY_REGISTER_USER);
37 source->AddLocalizedString("confirmRegistration", 38 source->AddLocalizedString("confirmRegistration",
38 IDS_LOCAL_DISCOVERY_CONFIRM_REGISTRATION); 39 IDS_LOCAL_DISCOVERY_CONFIRM_REGISTRATION);
39 source->AddLocalizedString("addingPrinter", 40 source->AddLocalizedString("addingPrinter",
40 IDS_LOCAL_DISCOVERY_ADDING_PRINTER); 41 IDS_LOCAL_DISCOVERY_ADDING_PRINTER);
41 source->AddLocalizedString("addingError", 42 source->AddLocalizedString("addingError",
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 user_prefs::PrefRegistrySyncable* registry) { 123 user_prefs::PrefRegistrySyncable* registry) {
123 registry->RegisterBooleanPref( 124 registry->RegisterBooleanPref(
124 prefs::kLocalDiscoveryNotificationsEnabled, 125 prefs::kLocalDiscoveryNotificationsEnabled,
125 #if defined(OS_WIN) 126 #if defined(OS_WIN)
126 false, 127 false,
127 #else 128 #else
128 true, 129 true,
129 #endif 130 #endif
130 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 131 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
131 } 132 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/local_discovery/local_discovery.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698