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

Unified Diff: chrome/browser/extensions/page_action_controller_unittest.cc

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/page_action_controller_unittest.cc
diff --git a/chrome/browser/extensions/page_action_controller_unittest.cc b/chrome/browser/extensions/page_action_controller_unittest.cc
index 5268a9a5ae018c0474d7009619b0f4af201b65a8..f77ef6ee6edcb4a1a9f0d6936154a65a99e6f5f1 100644
--- a/chrome/browser/extensions/page_action_controller_unittest.cc
+++ b/chrome/browser/extensions/page_action_controller_unittest.cc
@@ -82,12 +82,12 @@ TEST_F(PageActionControllerTest, NavigationClearsState) {
.Set("page_action", DictionaryBuilder()
.Set("default_title", "Hello")))
.Build();
- extension_service_->AddExtension(extension);
+ extension_service_->AddExtension(extension.get());
NavigateAndCommit(GURL("http://www.google.com"));
- ExtensionAction& page_action = *ExtensionActionManager::Get(profile())->
- GetPageAction(*extension);
+ ExtensionAction& page_action =
+ *ExtensionActionManager::Get(profile())->GetPageAction(*extension.get());
page_action.SetTitle(tab_id(), "Goodbye");
page_action.SetPopupUrl(
tab_id(), extension->GetResourceURL("popup.html"));
« no previous file with comments | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | chrome/browser/extensions/permissions_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698