diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 16:01:49 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 16:01:49 +0000 |
commit | 3b35564a393a641b95f4fd307d5b1b126b498e5a (patch) | |
tree | df57140fbf8f5dd425f35bbd65a61795f3e0e084 /chrome/common | |
parent | 210e33bb96f415629c4404b8b72199de80f3a33b (diff) | |
download | chromium_src-3b35564a393a641b95f4fd307d5b1b126b498e5a.zip chromium_src-3b35564a393a641b95f4fd307d5b1b126b498e5a.tar.gz chromium_src-3b35564a393a641b95f4fd307d5b1b126b498e5a.tar.bz2 |
Wires TabContents to app extensions.
BUG=32845
TEST=none
Review URL: http://codereview.chromium.org/566032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/extension.cc | 8 | ||||
-rw-r--r-- | chrome/common/extensions/extension.h | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc index 8bd7b2f..eef996e 100644 --- a/chrome/common/extensions/extension.cc +++ b/chrome/common/extensions/extension.cc @@ -783,10 +783,10 @@ bool Extension::InitFromValue(const DictionaryValue& source, bool require_id, if (source.HasKey(keys::kPublicKey)) { std::string public_key_bytes; if (!source.GetString(keys::kPublicKey, &public_key_) || - !ParsePEMKeyBytes(public_key_, &public_key_bytes) || - !GenerateId(public_key_bytes, &id_)) { - *error = errors::kInvalidKey; - return false; + !ParsePEMKeyBytes(public_key_, &public_key_bytes) || + !GenerateId(public_key_bytes, &id_)) { + *error = errors::kInvalidKey; + return false; } } else if (require_id) { *error = errors::kInvalidKey; diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h index c858534..0e521c4 100644 --- a/chrome/common/extensions/extension.h +++ b/chrome/common/extensions/extension.h @@ -423,16 +423,17 @@ class Extension { // The URL an app should launch to. GURL app_launch_url_; - + // The type of window to start when the application is launched. AppLaunchWindowType app_launch_window_type_; - + // Runtime data: // True if the background page is ready. bool background_page_ready_; FRIEND_TEST(ExtensionTest, LoadPageActionHelper); + FRIEND_TEST(TabStripModelTest, Apps); DISALLOW_COPY_AND_ASSIGN(Extension); }; |