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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 10704023: Moved ExtensionPrefs and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master merged in Created 8 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 (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/automation/automation_provider_observers.h" 5 #include "chrome/browser/automation/automation_provider_observers.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 app_info->SetBoolean("is_component_extension", 1947 app_info->SetBoolean("is_component_extension",
1948 (*ext)->location() == extensions::Extension::COMPONENT); 1948 (*ext)->location() == extensions::Extension::COMPONENT);
1949 1949
1950 // Convert the launch_type integer into a more descriptive string. 1950 // Convert the launch_type integer into a more descriptive string.
1951 int launch_type; 1951 int launch_type;
1952 const char* kLaunchType = "launch_type"; 1952 const char* kLaunchType = "launch_type";
1953 if (!app_info->GetInteger(kLaunchType, &launch_type)) { 1953 if (!app_info->GetInteger(kLaunchType, &launch_type)) {
1954 NOTREACHED() << "Can't get integer from key " << kLaunchType; 1954 NOTREACHED() << "Can't get integer from key " << kLaunchType;
1955 continue; 1955 continue;
1956 } 1956 }
1957 if (launch_type == ExtensionPrefs::LAUNCH_PINNED) { 1957 if (launch_type == extensions::ExtensionPrefs::LAUNCH_PINNED) {
1958 app_info->SetString(kLaunchType, "pinned"); 1958 app_info->SetString(kLaunchType, "pinned");
1959 } else if (launch_type == ExtensionPrefs::LAUNCH_REGULAR) { 1959 } else if (launch_type == extensions::ExtensionPrefs::LAUNCH_REGULAR) {
1960 app_info->SetString(kLaunchType, "regular"); 1960 app_info->SetString(kLaunchType, "regular");
1961 } else if (launch_type == ExtensionPrefs::LAUNCH_FULLSCREEN) { 1961 } else if (launch_type == extensions::ExtensionPrefs::LAUNCH_FULLSCREEN) {
1962 app_info->SetString(kLaunchType, "fullscreen"); 1962 app_info->SetString(kLaunchType, "fullscreen");
1963 } else if (launch_type == ExtensionPrefs::LAUNCH_WINDOW) { 1963 } else if (launch_type == extensions::ExtensionPrefs::LAUNCH_WINDOW) {
1964 app_info->SetString(kLaunchType, "window"); 1964 app_info->SetString(kLaunchType, "window");
1965 } else { 1965 } else {
1966 app_info->SetString(kLaunchType, "unknown"); 1966 app_info->SetString(kLaunchType, "unknown");
1967 } 1967 }
1968 1968
1969 apps_list->push_back(app_info); 1969 apps_list->push_back(app_info);
1970 } 1970 }
1971 } 1971 }
1972 return apps_list; 1972 return apps_list;
1973 } 1973 }
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
3094 AutomationJSONReply(automation_, reply_message_.release()) 3094 AutomationJSONReply(automation_, reply_message_.release())
3095 .SendSuccess(NULL); 3095 .SendSuccess(NULL);
3096 } 3096 }
3097 delete this; 3097 delete this;
3098 } 3098 }
3099 } else { 3099 } else {
3100 NOTREACHED(); 3100 NOTREACHED();
3101 } 3101 }
3102 } 3102 }
3103 3103
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/extension_app_provider.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698