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

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

Issue 2004043002: Supervised Users Initiated Installs v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kid_initiated_install
Patch Set: Style fix Created 4 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/extension_sync_data.h" 5 #include "chrome/browser/extensions/extension_sync_data.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ExtensionSyncData::ExtensionSyncData() 72 ExtensionSyncData::ExtensionSyncData()
73 : is_app_(false), 73 : is_app_(false),
74 uninstalled_(false), 74 uninstalled_(false),
75 enabled_(false), 75 enabled_(false),
76 supports_disable_reasons_(false), 76 supports_disable_reasons_(false),
77 disable_reasons_(Extension::DISABLE_NONE), 77 disable_reasons_(Extension::DISABLE_NONE),
78 incognito_enabled_(false), 78 incognito_enabled_(false),
79 remote_install_(false), 79 remote_install_(false),
80 all_urls_enabled_(BOOLEAN_UNSET), 80 all_urls_enabled_(BOOLEAN_UNSET),
81 installed_by_custodian_(false), 81 installed_by_custodian_(false),
82 launch_type_(LAUNCH_TYPE_INVALID) { 82 launch_type_(LAUNCH_TYPE_INVALID) {}
83 }
84 83
85 ExtensionSyncData::ExtensionSyncData(const Extension& extension, 84 ExtensionSyncData::ExtensionSyncData(const Extension& extension,
86 bool enabled, 85 bool enabled,
87 int disable_reasons, 86 int disable_reasons,
88 bool incognito_enabled, 87 bool incognito_enabled,
89 bool remote_install, 88 bool remote_install,
90 OptionalBoolean all_urls_enabled) 89 OptionalBoolean all_urls_enabled)
91 : ExtensionSyncData(extension, enabled, disable_reasons, incognito_enabled, 90 : ExtensionSyncData(extension,
Marc Treib 2016/05/23 15:32:42 Please undo - this file isn't touched except for t
mamir 2016/05/23 19:35:14 Done.
92 remote_install, all_urls_enabled, StringOrdinal(), 91 enabled,
93 StringOrdinal(), LAUNCH_TYPE_INVALID) { 92 disable_reasons,
94 } 93 incognito_enabled,
94 remote_install,
95 all_urls_enabled,
96 StringOrdinal(),
97 StringOrdinal(),
98 LAUNCH_TYPE_INVALID) {}
95 99
96 ExtensionSyncData::ExtensionSyncData(const Extension& extension, 100 ExtensionSyncData::ExtensionSyncData(const Extension& extension,
97 bool enabled, 101 bool enabled,
98 int disable_reasons, 102 int disable_reasons,
99 bool incognito_enabled, 103 bool incognito_enabled,
100 bool remote_install, 104 bool remote_install,
101 OptionalBoolean all_urls_enabled, 105 OptionalBoolean all_urls_enabled,
102 const StringOrdinal& app_launch_ordinal, 106 const StringOrdinal& app_launch_ordinal,
103 const StringOrdinal& page_ordinal, 107 const StringOrdinal& page_ordinal,
104 extensions::LaunchType launch_type) 108 extensions::LaunchType launch_type)
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 321
318 if (entity_specifics.has_extension()) 322 if (entity_specifics.has_extension())
319 return PopulateFromExtensionSpecifics(entity_specifics.extension()); 323 return PopulateFromExtensionSpecifics(entity_specifics.extension());
320 324
321 LOG(ERROR) << "Attempt to sync bad EntitySpecifics: no extension data."; 325 LOG(ERROR) << "Attempt to sync bad EntitySpecifics: no extension data.";
322 RecordBadSyncData(NO_EXTENSION_SPECIFICS); 326 RecordBadSyncData(NO_EXTENSION_SPECIFICS);
323 return false; 327 return false;
324 } 328 }
325 329
326 } // namespace extensions 330 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698