OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |