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

Unified Diff: chrome/browser/sessions/session_service.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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_test.cc ('k') | chrome/browser/ssl/ssl_host_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_service.cc
diff --git a/chrome/browser/sessions/session_service.cc b/chrome/browser/sessions/session_service.cc
index 9b2db65bc4b47d0c9a11caf5a47b9a677448f4c8..1cf44936accd10d588e4fbc19a1b4d6de6370ea6 100644
--- a/chrome/browser/sessions/session_service.cc
+++ b/chrome/browser/sessions/session_service.cc
@@ -417,9 +417,9 @@ SessionService::Handle SessionService::GetCurrentSession(
if (pending_window_close_ids_.empty()) {
// If there are no pending window closes, we can get the current session
// from memory.
- scoped_refptr<InternalSessionRequest> request = new InternalSessionRequest(
+ scoped_refptr<InternalSessionRequest> request(new InternalSessionRequest(
NewCallback(this, &SessionService::OnGotSessionCommands),
- callback);
+ callback));
AddRequest(request, consumer);
IdToRange tab_to_available_range;
std::set<SessionID::id_type> windows_to_track;
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_test.cc ('k') | chrome/browser/ssl/ssl_host_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698