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

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

Issue 11066025: Merge 159612 - Temporary fix bug in disabling sync for default apps (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | no next file » | 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) 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/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) { 304 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) {
305 int flags = Extension::NO_FLAGS; 305 int flags = Extension::NO_FLAGS;
306 if (info->extension_location != Extension::LOAD) 306 if (info->extension_location != Extension::LOAD)
307 flags |= Extension::REQUIRE_KEY; 307 flags |= Extension::REQUIRE_KEY;
308 if (extension_prefs_->AllowFileAccess(info->extension_id)) 308 if (extension_prefs_->AllowFileAccess(info->extension_id))
309 flags |= Extension::ALLOW_FILE_ACCESS; 309 flags |= Extension::ALLOW_FILE_ACCESS;
310 if (extension_prefs_->IsFromWebStore(info->extension_id)) 310 if (extension_prefs_->IsFromWebStore(info->extension_id))
311 flags |= Extension::FROM_WEBSTORE; 311 flags |= Extension::FROM_WEBSTORE;
312 if (extension_prefs_->IsFromBookmark(info->extension_id)) 312 if (extension_prefs_->IsFromBookmark(info->extension_id))
313 flags |= Extension::FROM_BOOKMARK; 313 flags |= Extension::FROM_BOOKMARK;
314 if (extension_prefs_->WasInstalledByDefault(info->extension_id)) {
315 flags |= Extension::WAS_INSTALLED_BY_DEFAULT;
316 }
314 return flags; 317 return flags;
315 } 318 }
316 319
317 } // namespace extensions 320 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698