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

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

Issue 9307114: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
11 #include "content/public/browser/navigation_entry.h" 11 #include "content/public/browser/navigation_entry.h"
12 12
13 using content::NavigationEntry; 13 using content::NavigationEntry;
14 14
15 // TabNavigation -------------------------------------------------------------- 15 // TabNavigation --------------------------------------------------------------
16 16
17 TabNavigation::TabNavigation() 17 TabNavigation::TabNavigation()
18 : transition_(content::PAGE_TRANSITION_TYPED), 18 : transition_(content::PAGE_TRANSITION_TYPED),
19 type_mask_(0), 19 type_mask_(0),
20 post_id_(-1),
20 index_(-1) { 21 index_(-1) {
21 } 22 }
22 23
23 TabNavigation::TabNavigation(int index, 24 TabNavigation::TabNavigation(int index,
24 const GURL& virtual_url, 25 const GURL& virtual_url,
25 const content::Referrer& referrer, 26 const content::Referrer& referrer,
26 const string16& title, 27 const string16& title,
27 const std::string& state, 28 const std::string& state,
28 content::PageTransition transition) 29 content::PageTransition transition)
29 : virtual_url_(virtual_url), 30 : virtual_url_(virtual_url),
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 SessionWindow::SessionWindow() 124 SessionWindow::SessionWindow()
124 : selected_tab_index(-1), 125 : selected_tab_index(-1),
125 type(Browser::TYPE_TABBED), 126 type(Browser::TYPE_TABBED),
126 is_constrained(true), 127 is_constrained(true),
127 show_state(ui::SHOW_STATE_DEFAULT) { 128 show_state(ui::SHOW_STATE_DEFAULT) {
128 } 129 }
129 130
130 SessionWindow::~SessionWindow() { 131 SessionWindow::~SessionWindow() {
131 STLDeleteElements(&tabs); 132 STLDeleteElements(&tabs);
132 } 133 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/chrome_access_token_store.cc ('k') | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698