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

Side by Side Diff: extensions/browser/api/runtime/runtime_api.cc

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/api/runtime/runtime_api.h" 5 #include "extensions/browser/api/runtime/runtime_api.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 break; 179 break;
180 } 180 }
181 case chrome::NOTIFICATION_EXTENSION_WILL_BE_INSTALLED_DEPRECATED: { 181 case chrome::NOTIFICATION_EXTENSION_WILL_BE_INSTALLED_DEPRECATED: {
182 const Extension* extension = 182 const Extension* extension =
183 content::Details<const InstalledExtensionInfo>(details)->extension; 183 content::Details<const InstalledExtensionInfo>(details)->extension;
184 OnExtensionInstalled(extension); 184 OnExtensionInstalled(extension);
185 break; 185 break;
186 } 186 }
187 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED_DEPRECATED: { 187 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED_DEPRECATED: {
188 const Extension* extension = 188 const Extension* extension =
189 content::Details<const Extension>(details).ptr(); 189 content::Details<const UninstalledExtensionInfo>(details)->extension;
190 OnExtensionUninstalled(extension); 190 OnExtensionUninstalled(extension);
191 break; 191 break;
192 } 192 }
193 default: 193 default:
194 NOTREACHED(); 194 NOTREACHED();
195 break; 195 break;
196 } 196 }
197 } 197 }
198 198
199 void RuntimeAPI::OnExtensionsReady() { 199 void RuntimeAPI::OnExtensionsReady() {
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 content::ChildProcessSecurityPolicy* policy = 530 content::ChildProcessSecurityPolicy* policy =
531 content::ChildProcessSecurityPolicy::GetInstance(); 531 content::ChildProcessSecurityPolicy::GetInstance();
532 policy->GrantReadFileSystem(renderer_id, filesystem_id); 532 policy->GrantReadFileSystem(renderer_id, filesystem_id);
533 base::DictionaryValue* dict = new base::DictionaryValue(); 533 base::DictionaryValue* dict = new base::DictionaryValue();
534 dict->SetString("fileSystemId", filesystem_id); 534 dict->SetString("fileSystemId", filesystem_id);
535 dict->SetString("baseName", relative_path); 535 dict->SetString("baseName", relative_path);
536 return RespondNow(OneArgument(dict)); 536 return RespondNow(OneArgument(dict));
537 } 537 }
538 538
539 } // namespace extensions 539 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698