• dpranke@chromium.org's avatar
    Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue so... · 6568e6bb
    dpranke@chromium.org authored
    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.
    
    Review URL: http://codereview.chromium.org/7922023
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102336 0039d316-1c4b-4281-b951-d872f2087c98
    6568e6bb
test_content_client.cc 1.26 KB