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

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

Issue 7061003: WebUI: properly internationalize the search cookies and search passwords placeholder text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/cookies_view_handler.h" 5 #include "chrome/browser/ui/webui/options/cookies_view_handler.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/browsing_data_appcache_helper.h" 9 #include "chrome/browser/browsing_data_appcache_helper.h"
10 #include "chrome/browser/browsing_data_database_helper.h" 10 #include "chrome/browser/browsing_data_database_helper.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 IDS_COOKIES_APPLICATION_CACHE_MANIFEST_LABEL }, 49 IDS_COOKIES_APPLICATION_CACHE_MANIFEST_LABEL },
50 { "label_cookie_last_accessed", IDS_COOKIES_LAST_ACCESSED_LABEL }, 50 { "label_cookie_last_accessed", IDS_COOKIES_LAST_ACCESSED_LABEL },
51 { "cookie_domain", IDS_COOKIES_DOMAIN_COLUMN_HEADER }, 51 { "cookie_domain", IDS_COOKIES_DOMAIN_COLUMN_HEADER },
52 { "cookie_local_data", IDS_COOKIES_DATA_COLUMN_HEADER }, 52 { "cookie_local_data", IDS_COOKIES_DATA_COLUMN_HEADER },
53 { "cookie_singular", IDS_COOKIES_SINGLE_COOKIE }, 53 { "cookie_singular", IDS_COOKIES_SINGLE_COOKIE },
54 { "cookie_plural", IDS_COOKIES_PLURAL_COOKIES }, 54 { "cookie_plural", IDS_COOKIES_PLURAL_COOKIES },
55 { "cookie_database_storage", IDS_COOKIES_DATABASE_STORAGE }, 55 { "cookie_database_storage", IDS_COOKIES_DATABASE_STORAGE },
56 { "cookie_indexed_db", IDS_COOKIES_INDEXED_DB }, 56 { "cookie_indexed_db", IDS_COOKIES_INDEXED_DB },
57 { "cookie_local_storage", IDS_COOKIES_LOCAL_STORAGE }, 57 { "cookie_local_storage", IDS_COOKIES_LOCAL_STORAGE },
58 { "cookie_app_cache", IDS_COOKIES_APPLICATION_CACHE }, 58 { "cookie_app_cache", IDS_COOKIES_APPLICATION_CACHE },
59 { "search_cookies", IDS_COOKIES_SEARCH_COOKIES },
59 { "remove_cookie", IDS_COOKIES_REMOVE_LABEL }, 60 { "remove_cookie", IDS_COOKIES_REMOVE_LABEL },
60 { "remove_all_cookie", IDS_COOKIES_REMOVE_ALL_LABEL }, 61 { "remove_all_cookie", IDS_COOKIES_REMOVE_ALL_LABEL },
61 }; 62 };
62 63
63 RegisterStrings(localized_strings, resources, arraysize(resources)); 64 RegisterStrings(localized_strings, resources, arraysize(resources));
64 RegisterTitle(localized_strings, "cookiesViewPage", 65 RegisterTitle(localized_strings, "cookiesViewPage",
65 IDS_COOKIES_WEBSITE_PERMISSIONS_WINDOW_TITLE); 66 IDS_COOKIES_WEBSITE_PERMISSIONS_WINDOW_TITLE);
66 } 67 }
67 68
68 void CookiesViewHandler::RegisterMessages() { 69 void CookiesViewHandler::RegisterMessages() {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 children); 197 children);
197 198
198 ListValue args; 199 ListValue args;
199 args.Append(parent == cookies_tree_model_->GetRoot() ? 200 args.Append(parent == cookies_tree_model_->GetRoot() ?
200 Value::CreateNullValue() : 201 Value::CreateNullValue() :
201 Value::CreateStringValue(cookies_tree_model_util::GetTreeNodeId(parent))); 202 Value::CreateStringValue(cookies_tree_model_util::GetTreeNodeId(parent)));
202 args.Append(children); 203 args.Append(children);
203 204
204 web_ui_->CallJavascriptFunction("CookiesView.loadChildren", args); 205 web_ui_->CallJavascriptFunction("CookiesView.loadChildren", args);
205 } 206 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/password_manager.html ('k') | chrome/browser/ui/webui/options/password_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698