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

Side by Side Diff: trunk/src/webkit/common/user_agent/user_agent.cc

Issue 192283002: Revert 255858 "Simplify the user agent code some more since afte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "webkit/common/user_agent/user_agent.h" 5 #include "webkit/common/user_agent/user_agent.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void SetUserAgent(const std::string& user_agent) { 67 void SetUserAgent(const std::string& user_agent) {
68 g_user_agent.Get().Set(user_agent); 68 g_user_agent.Get().Set(user_agent);
69 } 69 }
70 70
71 const std::string& GetUserAgent(const GURL& url) { 71 const std::string& GetUserAgent(const GURL& url) {
72 return g_user_agent.Get().Get(); 72 return g_user_agent.Get().Get();
73 } 73 }
74 74
75 } // namespace webkit_glue 75 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « trunk/src/webkit/common/user_agent/user_agent.h ('k') | trunk/src/webkit/common/user_agent/webkit_user_agent.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698