diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-24 18:49:33 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-24 18:49:33 +0000 |
commit | 1fe96d0176a2014e38af43154cd27cbf64cf99bc (patch) | |
tree | dde084bd7272b178765fae9eb3097910d2b1f9b5 /chrome/browser/chrome_plugin_browsertest.cc | |
parent | 28126586a68d2aaed9557c505e10ebc20f50ed5b (diff) | |
download | chromium_src-1fe96d0176a2014e38af43154cd27cbf64cf99bc.zip chromium_src-1fe96d0176a2014e38af43154cd27cbf64cf99bc.tar.gz chromium_src-1fe96d0176a2014e38af43154cd27cbf64cf99bc.tar.bz2 |
Update some uses of UTF conversions in chrome/browser to use the base:: namespace.
BUG=330556
TEST=no change
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/120943002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242449 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_plugin_browsertest.cc')
-rw-r--r-- | chrome/browser/chrome_plugin_browsertest.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/chrome_plugin_browsertest.cc b/chrome/browser/chrome_plugin_browsertest.cc index 4cddad3..3a23969 100644 --- a/chrome/browser/chrome_plugin_browsertest.cc +++ b/chrome/browser/chrome_plugin_browsertest.cc @@ -85,10 +85,11 @@ class ChromePluginTest : public InProcessBrowserTest { static void LoadAndWait(Browser* window, const GURL& url, bool pass) { content::WebContents* web_contents = window->tab_strip_model()->GetActiveWebContents(); - base::string16 expected_title(ASCIIToUTF16(pass ? "OK" : "plugin_not_found")); + base::string16 expected_title( + base::ASCIIToUTF16(pass ? "OK" : "plugin_not_found")); content::TitleWatcher title_watcher(web_contents, expected_title); - title_watcher.AlsoWaitForTitle(ASCIIToUTF16("FAIL")); - title_watcher.AlsoWaitForTitle(ASCIIToUTF16( + title_watcher.AlsoWaitForTitle(base::ASCIIToUTF16("FAIL")); + title_watcher.AlsoWaitForTitle(base::ASCIIToUTF16( pass ? "plugin_not_found" : "OK")); ui_test_utils::NavigateToURL(window, url); ASSERT_EQ(expected_title, title_watcher.WaitAndGetTitle()); @@ -109,7 +110,7 @@ class ChromePluginTest : public InProcessBrowserTest { std::vector<content::WebPluginInfo> plugins = GetPlugins(); for (std::vector<content::WebPluginInfo>::const_iterator it = plugins.begin(); it != plugins.end(); ++it) { - if (it->name == ASCIIToUTF16(content::kFlashPluginName)) + if (it->name == base::ASCIIToUTF16(content::kFlashPluginName)) paths->push_back(it->path); } } @@ -256,7 +257,7 @@ IN_PROC_BROWSER_TEST_F(ChromePluginTest, InstalledPlugins) { for (size_t i = 0; i < ARRAYSIZE_UNSAFE(expected); ++i) { size_t j = 0; for (; j < plugins.size(); ++j) { - if (plugins[j].name == ASCIIToUTF16(expected[i])) + if (plugins[j].name == base::ASCIIToUTF16(expected[i])) break; } ASSERT_TRUE(j != plugins.size()) << "Didn't find " << expected[i]; |