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

Unified Diff: apps/shortcut_manager.cc

Issue 17948002: Update Linux 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, 6 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
« no previous file with comments | « no previous file | base/memory/ref_counted_delete_on_message_loop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shortcut_manager.cc
diff --git a/apps/shortcut_manager.cc b/apps/shortcut_manager.cc
index 5fafdb63b6361f5a8654a0eb3ed0dd3fc8aedeba..a3629d4a0855289a4ea6b0dd523b836de3ca6044 100644
--- a/apps/shortcut_manager.cc
+++ b/apps/shortcut_manager.cc
@@ -143,9 +143,9 @@ void ShortcutManager::OnceOffCreateShortcuts() {
const ExtensionSet* apps = extension_service->extensions();
for (ExtensionSet::const_iterator it = apps->begin();
it != apps->end(); ++it) {
- if (ShouldCreateShortcutFor(*it))
+ if (ShouldCreateShortcutFor(it->get()))
web_app::UpdateShortcutInfoAndIconForApp(
- *(*it), profile_, base::Bind(&CreateShortcutsInApplicationsMenu));
+ *it->get(), profile_, base::Bind(&CreateShortcutsInApplicationsMenu));
}
}
« no previous file with comments | « no previous file | base/memory/ref_counted_delete_on_message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698