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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index ec10dfa2bf81207720ccbdbcde45d31c36102c2f..241a4b1b869090d71acdb5908dadb76e67abff35 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -1549,9 +1549,9 @@ void TestingAutomationProvider::GetBookmarksAsJSON(
if (!browser->profile()->GetBookmarkModel()->IsLoaded()) {
return;
}
- scoped_refptr<BookmarkStorage> storage = new BookmarkStorage(
+ scoped_refptr<BookmarkStorage> storage(new BookmarkStorage(
browser->profile(),
- browser->profile()->GetBookmarkModel());
+ browser->profile()->GetBookmarkModel()));
*success = storage->SerializeData(bookmarks_as_json);
}
}
« no previous file with comments | « chrome/browser/automation/automation_resource_message_filter.cc ('k') | chrome/browser/bookmarks/bookmark_html_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698