Index: chrome/browser/web_applications/web_app_unittest.cc |
diff --git a/chrome/browser/web_applications/web_app_unittest.cc b/chrome/browser/web_applications/web_app_unittest.cc |
index 13359e77976ca28c0c68659c7ad573302f752845..f9cac1e901438a1a89a3d4ab443f7371ab23c7c3 100644 |
--- a/chrome/browser/web_applications/web_app_unittest.cc |
+++ b/chrome/browser/web_applications/web_app_unittest.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/web_applications/web_app.h" |
#include "base/files/file_path.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/browser/web_applications/web_app.h" |
@@ -43,12 +44,12 @@ TEST_F(WebApplicationTest, GetShortcutInfoForTab) { |
RenderViewHostTester::TestOnMessageReceived( |
rvh(), ChromeViewHostMsg_DidGetWebApplicationInfo(0, web_app_info)); |
- web_app::ShortcutInfo info; |
- web_app::GetShortcutInfoForTab(web_contents(), &info); |
+ scoped_ptr<web_app::ShortcutInfo> info = |
+ web_app::GetShortcutInfoForTab(web_contents()); |
- EXPECT_EQ(title, info.title); |
- EXPECT_EQ(description, info.description); |
- EXPECT_EQ(url, info.url); |
+ EXPECT_EQ(title, info->title); |
+ EXPECT_EQ(description, info->description); |
+ EXPECT_EQ(url, info->url); |
} |
#endif |