Commit 44b15a3d authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Remove static initialization of user_agent_override_.

Convert to member variable.

Change-Id: I0985910a2730b3668796d706ab52cb12a7a8ba11
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1659630
Commit-Queue: John Wu <jzw@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669921}
parent 37e8d774
...@@ -52,7 +52,7 @@ class SESSIONS_EXPORT IOSLiveTab : public LiveTab, ...@@ -52,7 +52,7 @@ class SESSIONS_EXPORT IOSLiveTab : public LiveTab,
web::WebState* web_state_; web::WebState* web_state_;
// Needed to return an empty string in GetUserAgentOverride(). // Needed to return an empty string in GetUserAgentOverride().
static std::string user_agent_override_; std::string user_agent_override_;
DISALLOW_COPY_AND_ASSIGN(IOSLiveTab); DISALLOW_COPY_AND_ASSIGN(IOSLiveTab);
}; };
......
...@@ -12,8 +12,6 @@ const char kIOSLiveTabWebStateUserDataKey[] = "ios_live_tab"; ...@@ -12,8 +12,6 @@ const char kIOSLiveTabWebStateUserDataKey[] = "ios_live_tab";
namespace sessions { namespace sessions {
std::string IOSLiveTab::user_agent_override_;
// static // static
IOSLiveTab* IOSLiveTab::GetForWebState(web::WebState* web_state) { IOSLiveTab* IOSLiveTab::GetForWebState(web::WebState* web_state) {
if (!web_state->GetUserData(kIOSLiveTabWebStateUserDataKey)) { if (!web_state->GetUserData(kIOSLiveTabWebStateUserDataKey)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment