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

Side by Side Diff: chrome/browser/plugin_updater.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/plugin_updater.h" 5 #include "chrome/browser/plugin_updater.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "base/version.h" 14 #include "base/version.h"
15 #include "chrome/browser/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/profile.h" 16 #include "chrome/browser/profile.h"
17 #include "chrome/common/chrome_paths.h" 17 #include "chrome/common/chrome_paths.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/plugin_group.h" 19 #include "chrome/common/plugin_group.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "webkit/glue/plugins/plugin_list.h" 21 #include "webkit/glue/plugins/plugin_list.h"
22 #include "webkit/glue/plugins/webplugininfo.h" 22 #include "webkit/glue/plugins/webplugininfo.h"
23 23
24 namespace plugin_updater { 24 namespace plugin_updater {
25 25
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Don't save preferences for vulnerable pugins. 249 // Don't save preferences for vulnerable pugins.
250 if (!CommandLine::ForCurrentProcess()->HasSwitch( 250 if (!CommandLine::ForCurrentProcess()->HasSwitch(
251 switches::kDisableOutdatedPlugins) || 251 switches::kDisableOutdatedPlugins) ||
252 !(*it)->IsVulnerable()) { 252 !(*it)->IsVulnerable()) {
253 plugins_list->Append((*it)->GetSummary()); 253 plugins_list->Append((*it)->GetSummary());
254 } 254 }
255 } 255 }
256 } 256 }
257 257
258 } // namespace plugin_updater 258 } // namespace plugin_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698