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

Unified Diff: chrome/common/extensions/manifest_handler.h

Issue 11882025: Move "oauth2" manifest key parsing out of Extension class. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 11 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/common/extensions/manifest_handler.h
===================================================================
--- chrome/common/extensions/manifest_handler.h (revision 176209)
+++ chrome/common/extensions/manifest_handler.h (working copy)
@@ -30,6 +30,12 @@
Extension* extension,
string16* error) = 0;
+ // Perform any initialization which is necessary when the Handler's key is
+ // not present in the manifest.
+ // Returns true on success or false on failure; if false, |error| will
+ // be set to a failure message.
+ virtual bool HasNoKey(Extension* extension, string16* error);
+
// Associate |handler| with |key| in the manifest. Takes ownership
// of |handler|. TODO(yoz): Decide how to handle dotted subkeys.
// WARNING: Manifest handlers registered only in the browser process

Powered by Google App Engine
This is Rietveld 408576698