Searched refs:g_user_agent (Results 1 – 2 of 2) sorted by relevance
354 static base::LazyInstance<UserAgentState> g_user_agent(358 BuildUserAgent(false, &g_user_agent.Get().user_agent); in SetUserAgentToDefault()366 DCHECK(!g_user_agent.Get().user_agent_requested) << in SetUserAgent()369 g_user_agent.Get().user_agent_is_overridden = true; in SetUserAgent()370 g_user_agent.Get().user_agent = new_user_agent; in SetUserAgent()374 if (g_user_agent.Get().user_agent.empty()) in GetUserAgent()376 g_user_agent.Get().user_agent_requested = true; in GetUserAgent()377 if (!g_user_agent.Get().user_agent_is_overridden) { in GetUserAgent()384 if (g_user_agent.Get().mimic_windows_user_agent.empty()) in GetUserAgent()385 BuildUserAgent(true, &g_user_agent.Get().mimic_windows_user_agent); in GetUserAgent()[all …]
121 base::LazyInstance<UserAgentState> g_user_agent = LAZY_INSTANCE_INITIALIZER; variable126 g_user_agent.Get().Set(user_agent, overriding); in SetUserAgent()130 return g_user_agent.Get().Get(url); in GetUserAgent()