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

Side by Side Diff: chrome/browser/extensions/installed_loader.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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) 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/extensions/installed_loader.h" 5 #include "chrome/browser/extensions/installed_loader.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/extensions/extension_prefs.h" 12 #include "chrome/browser/extensions/extension_prefs.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/extensions/extension_file_util.h" 16 #include "chrome/common/extensions/extension_file_util.h"
17 #include "chrome/common/extensions/extension_l10n_util.h" 17 #include "chrome/common/extensions/extension_l10n_util.h"
18 #include "chrome/common/extensions/extension_manifest_constants.h" 18 #include "chrome/common/extensions/extension_manifest_constants.h"
19 #include "chrome/common/extensions/manifest.h" 19 #include "chrome/common/extensions/manifest.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 #include "content/public/browser/user_metrics.h" 22 #include "content/public/browser/user_metrics.h"
23 23
24 using content::BrowserThread; 24 using content::BrowserThread;
25 using content::UserMetricsAction; 25 using content::UserMetricsAction;
26 using extensions::Extension;
27 using extensions::ExtensionInfo;
26 28
27 namespace errors = extension_manifest_errors; 29 namespace errors = extension_manifest_errors;
28 30
29 namespace { 31 namespace {
30 32
31 // The following enumeration is used in histograms matching 33 // The following enumeration is used in histograms matching
32 // Extensions.ManifestReload* . Values may be added, as long as existing 34 // Extensions.ManifestReload* . Values may be added, as long as existing
33 // values are not changed. 35 // values are not changed.
34 enum ManifestReloadReason { 36 enum ManifestReloadReason {
35 NOT_NEEDED = 0, // Reload not needed. 37 NOT_NEEDED = 0, // Reload not needed.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 if (extension_prefs_->AllowFileAccess(info->extension_id)) 297 if (extension_prefs_->AllowFileAccess(info->extension_id))
296 flags |= Extension::ALLOW_FILE_ACCESS; 298 flags |= Extension::ALLOW_FILE_ACCESS;
297 if (extension_prefs_->IsFromWebStore(info->extension_id)) 299 if (extension_prefs_->IsFromWebStore(info->extension_id))
298 flags |= Extension::FROM_WEBSTORE; 300 flags |= Extension::FROM_WEBSTORE;
299 if (extension_prefs_->IsFromBookmark(info->extension_id)) 301 if (extension_prefs_->IsFromBookmark(info->extension_id))
300 flags |= Extension::FROM_BOOKMARK; 302 flags |= Extension::FROM_BOOKMARK;
301 return flags; 303 return flags;
302 } 304 }
303 305
304 } // namespace extensions 306 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/installed_loader.h ('k') | chrome/browser/extensions/isolated_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698