Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / content / shell / shell_content_client.cc
blob6c770d0db773b2f34a420acf525fc6892a3cb874
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
3 // found in the LICENSE file.
5 #include "content/shell/shell_content_client.h"
7 #include "base/string_piece.h"
8 #include "ui/base/l10n/l10n_util.h"
9 #include "ui/base/resource/resource_bundle.h"
10 #include "webkit/user_agent/user_agent_util.h"
12 namespace content {
14 ShellContentClient::~ShellContentClient() {
17 std::string ShellContentClient::GetUserAgent() const {
18 // The "19" is so that sites that sniff for version think that this is
19 // something reasonably current; the "77.34.5" is a hint that this isn't a
20 // standard Chrome.
21 return webkit_glue::BuildUserAgentFromProduct("Chrome/19.77.34.5");
24 string16 ShellContentClient::GetLocalizedString(int message_id) const {
25 return l10n_util::GetStringUTF16(message_id);
28 base::StringPiece ShellContentClient::GetDataResource(
29 int resource_id,
30 ui::ScaleFactor scale_factor) const {
31 return ResourceBundle::GetSharedInstance().GetRawDataResource(
32 resource_id, scale_factor);
35 } // namespace content