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

Side by Side Diff: chrome/common/content_settings.cc

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years 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
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc ('k') | chrome/common/profiling.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/content_settings.h" 5 #include "chrome/common/content_settings.h"
6 6
7 ContentSetting IntToContentSetting(int content_setting) { 7 ContentSetting IntToContentSetting(int content_setting) {
8 return ((content_setting < 0) || 8 return ((content_setting < 0) ||
9 (content_setting >= CONTENT_SETTING_NUM_SETTINGS)) ? 9 (content_setting >= CONTENT_SETTING_NUM_SETTINGS)) ?
10 CONTENT_SETTING_DEFAULT : static_cast<ContentSetting>(content_setting); 10 CONTENT_SETTING_DEFAULT : static_cast<ContentSetting>(content_setting);
11 } 11 }
12 12
13 ContentSettingPatternSource::ContentSettingPatternSource( 13 ContentSettingPatternSource::ContentSettingPatternSource(
14 const ContentSettingsPattern& primary_pattern, 14 const ContentSettingsPattern& primary_pattern,
15 const ContentSettingsPattern& secondary_pattern, 15 const ContentSettingsPattern& secondary_pattern,
16 ContentSetting setting, 16 ContentSetting setting,
17 const std::string& source, 17 const std::string& source,
18 bool incognito) 18 bool incognito)
19 : primary_pattern(primary_pattern), 19 : primary_pattern(primary_pattern),
20 secondary_pattern(secondary_pattern), 20 secondary_pattern(secondary_pattern),
21 setting(setting), 21 setting(setting),
22 source(source), 22 source(source),
23 incognito(incognito) {} 23 incognito(incognito) {}
24 24
25 ContentSettingPatternSource::ContentSettingPatternSource() {} 25 ContentSettingPatternSource::ContentSettingPatternSource()
26 : setting(CONTENT_SETTING_DEFAULT), incognito(false) {
27 }
26 28
27 RendererContentSettingRules::RendererContentSettingRules() {} 29 RendererContentSettingRules::RendererContentSettingRules() {}
28 30
29 RendererContentSettingRules::~RendererContentSettingRules() {} 31 RendererContentSettingRules::~RendererContentSettingRules() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc ('k') | chrome/common/profiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698