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

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

Issue 323843003: Add a do_not_sync pref to ExtensionPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for comments in #2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/crx_installer.h
diff --git a/chrome/browser/extensions/crx_installer.h b/chrome/browser/extensions/crx_installer.h
index 93659c567c635674b2a4b8258263107ebf49b16f..fe34b2f1ec016ead88a6f14d973d070a1f152de1 100644
--- a/chrome/browser/extensions/crx_installer.h
+++ b/chrome/browser/extensions/crx_installer.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
#include <string>
+#include <vector>
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
@@ -196,6 +197,13 @@ class CrxInstaller
install_flags_ &= ~kInstallFlagIsEphemeral;
}
+ void set_install_flag(int flag, bool val) {
+ if (val)
+ install_flags_ |= flag;
+ else
+ install_flags_ &= ~flag;
+ }
+
bool did_handle_successfully() const { return did_handle_successfully_; }
Profile* profile() { return installer_.profile(); }
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698