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

Side by Side Diff: chrome/browser/infobars/infobar_extension_api.cc

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
None
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/infobars/infobar_extension_api.h" 5 #include "chrome/browser/infobars/infobar_extension_api.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" 10 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
(...skipping 10 matching lines...) Expand all
21 21
22 22
23 bool InfobarsShowFunction::RunImpl() { 23 bool InfobarsShowFunction::RunImpl() {
24 base::DictionaryValue* args; 24 base::DictionaryValue* args;
25 EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &args)); 25 EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &args));
26 26
27 const char kTabId[] = "tabId"; 27 const char kTabId[] = "tabId";
28 int tab_id; 28 int tab_id;
29 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(kTabId, &tab_id)); 29 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(kTabId, &tab_id));
30 30

error: old chunk mismatch

OLDNEW
« no previous file with comments | « chrome/browser/infobars/infobar_extension_api.h ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698