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

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

Issue 308003005: app_list: Drive app integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pref is_syancable -> do_not_sync, remove AppListModel deps and no auto uninstall new_app Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/crx_installer.h
diff --git a/chrome/browser/extensions/crx_installer.h b/chrome/browser/extensions/crx_installer.h
index a3f7b10d48f1c49e90dcc37fce9eab638bdd0d78..9e90ffacc7110de1648ff84bd85d95217d02da16 100644
--- a/chrome/browser/extensions/crx_installer.h
+++ b/chrome/browser/extensions/crx_installer.h
@@ -188,6 +188,8 @@ class CrxInstaller
is_ephemeral_ = val;
}
+ void set_is_syncable(bool is_syncable) { is_syncable_ = is_syncable; }
+
bool did_handle_successfully() const { return did_handle_successfully_; }
Profile* profile() { return installer_.profile(); }
@@ -208,8 +210,7 @@ class CrxInstaller
void ConvertUserScriptOnFileThread();
// Converts the source web app to an extension.
- void ConvertWebAppOnFileThread(const WebApplicationInfo& web_app,
- const base::FilePath& install_directory);
+ void ConvertWebAppOnFileThread(const WebApplicationInfo& web_app);
// Called after OnUnpackSuccess as a last check to see whether the install
// should complete.
@@ -270,7 +271,7 @@ class CrxInstaller
GURL download_url_;
// The directory extensions are installed to.
- base::FilePath install_directory_;
+ const base::FilePath install_directory_;
// The location the installation came from (bundled with Chromium, registry,
// manual install, etc). This metadata is saved with the installation if
@@ -410,6 +411,10 @@ class CrxInstaller
// True if an ephemeral app is being installed.
bool is_ephemeral_;
+ // Boolean value to initiate the relevant field in the installed Extension.
+ // Default is true, which means the install extension is allowed to be synced.
+ bool is_syncable_;
+
// Gives access to common methods and data of an extension installer.
ExtensionInstaller installer_;

Powered by Google App Engine
This is Rietveld 408576698