Infobar material design refresh: bg color
[chromium-blink-merge.git] / ios / web / shell / shell_web_client.mm
blob405aeca86b996f9b749a7380cb9096564e8c5d97
1 // Copyright 2014 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 "ios/web/shell/shell_web_client.h"
7 #include "ios/web/public/user_agent.h"
8 #include "ios/web/shell/shell_web_main_parts.h"
10 namespace web {
12 ShellWebClient::ShellWebClient() {
15 ShellWebClient::~ShellWebClient() {
18 WebMainParts* ShellWebClient::CreateWebMainParts() {
19   web_main_parts_.reset(new ShellWebMainParts);
20   return web_main_parts_.get();
23 ShellBrowserState* ShellWebClient::browser_state() const {
24   return web_main_parts_->browser_state();
27 std::string ShellWebClient::GetProduct() const {
28   return "CriOS/36.77.34.45";
31 std::string ShellWebClient::GetUserAgent(bool desktop_user_agent) const {
32   std::string product = GetProduct();
33   return web::BuildUserAgentFromProduct(product);
36 }  // namespace web