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

Unified Diff: chrome/browser/extensions/app_sync_data.h

Issue 93883004: Sync the launch type pref for apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better launch type validity checks Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/app_sync_data.h
diff --git a/chrome/browser/extensions/app_sync_data.h b/chrome/browser/extensions/app_sync_data.h
index 0d2c67fd362956fc10f7086c73c79fe5cec73158..60e36a844e0aeb9ec544a6d17eb1971d8cb5013c 100644
--- a/chrome/browser/extensions/app_sync_data.h
+++ b/chrome/browser/extensions/app_sync_data.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_
#include "chrome/browser/extensions/extension_sync_data.h"
+#include "chrome/common/extensions/extension_constants.h"
#include "sync/api/string_ordinal.h"
#include "sync/api/sync_change.h"
@@ -32,7 +33,8 @@ class AppSyncData {
bool enabled,
bool incognito_enabled,
const syncer::StringOrdinal& app_launch_ordinal,
- const syncer::StringOrdinal& page_ordinal);
+ const syncer::StringOrdinal& page_ordinal,
+ extensions::LaunchType launch_type);
~AppSyncData();
// Retrive sync data from this class.
@@ -55,6 +57,10 @@ class AppSyncData {
return extension_sync_data_;
}
+ const extensions::LaunchType launch_type() const {
+ return launch_type_;
+ }
+
private:
// Convert an AppSyncData back out to a sync structure.
void PopulateAppSpecifics(sync_pb::AppSpecifics* specifics) const;
@@ -67,6 +73,7 @@ class AppSyncData {
ExtensionSyncData extension_sync_data_;
syncer::StringOrdinal app_launch_ordinal_;
syncer::StringOrdinal page_ordinal_;
+ extensions::LaunchType launch_type_;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698