|
Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue so that SetUserAgent() must be called before GetUserAgent().
This was causing a dependency inversion between webkit_support and its clients, and was needed for the content component build.
For content users, calling SetContentClient() will automatically initialize the user agent (retrieved from client->GetUserAgent()).
As a bonus, fixing this allowed me to re-test the "mimic_windows" code path and it looks like we no longer need it.
R=jam@chromium.org,tony@chromium.org
BUG= 11136, 90442
TEST=visit yahoo! mail using Chromium on Linux, ensure that we don't get an "unsupported browser" warning.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102336
Total comments: 33
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+93 lines, -111 lines) |
Patch |
 |
M |
chrome/browser/ui/browser_init.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_content_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_content_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome_frame/html_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome_frame/renderer_glue.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+1 line, -13 lines |
0 comments
|
Download
|
 |
M |
chrome_frame/test/html_util_unittests.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+11 lines, -5 lines |
2 comments
|
Download
|
 |
M |
content/common/child_thread.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/common/content_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/common/content_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_glue.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/shell/shell_content_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/shell/shell_content_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/test/test_content_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/test/test_content_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/user_agent.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/user_agent.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/webkit_glue.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/webkit_glue.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
5 chunks |
+14 lines, -20 lines |
0 comments
|
Download
|
 |
M |
webkit/support/webkit_support.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/support/webkit_support_glue.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/test_shell.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|