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

Side by Side Diff: chrome/browser/sessions/session_types.cc

Issue 7791029: When the user navigates to the home page, make sure to set the RLZ string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sessions/session_types.h" 5 #include "chrome/browser/sessions/session_types.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "content/browser/tab_contents/navigation_controller.h" 10 #include "content/browser/tab_contents/navigation_controller.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // static 60 // static
61 NavigationEntry* TabNavigation::ToNavigationEntry(int page_id, 61 NavigationEntry* TabNavigation::ToNavigationEntry(int page_id,
62 Profile *profile) const { 62 Profile *profile) const {
63 NavigationEntry* entry = NavigationController::CreateNavigationEntry( 63 NavigationEntry* entry = NavigationController::CreateNavigationEntry(
64 virtual_url_, 64 virtual_url_,
65 referrer_, 65 referrer_,
66 // Use a transition type of reload so that we don't incorrectly 66 // Use a transition type of reload so that we don't incorrectly
67 // increase the typed count. 67 // increase the typed count.
68 PageTransition::RELOAD, 68 PageTransition::RELOAD,
69 std::string(),
69 profile); 70 profile);
70 71
71 entry->set_page_id(page_id); 72 entry->set_page_id(page_id);
72 entry->set_title(title_); 73 entry->set_title(title_);
73 entry->set_content_state(state_); 74 entry->set_content_state(state_);
74 entry->set_has_post_data(type_mask_ & TabNavigation::HAS_POST_DATA); 75 entry->set_has_post_data(type_mask_ & TabNavigation::HAS_POST_DATA);
75 76
76 return entry; 77 return entry;
77 } 78 }
78 79
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 124
124 // SyncedSession -------------------------------------------------------------- 125 // SyncedSession --------------------------------------------------------------
125 126
126 SyncedSession::SyncedSession() : session_tag("invalid") { 127 SyncedSession::SyncedSession() : session_tag("invalid") {
127 } 128 }
128 129
129 SyncedSession::~SyncedSession() { 130 SyncedSession::~SyncedSession() {
130 STLDeleteElements(&windows); 131 STLDeleteElements(&windows);
131 } 132 }
132 133
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698